/** * Retrieves the binary contents of this message. This method caches the contents, so repeated calls to this method should not incur a * penalty; however, modifications to the message contents outside of this class will result in stale data returned from this method. * * @return binary contents of the entity body */ public byte[] getBinaryContents() { // avoid re-extracting the contents if this method is called repeatedly if (binaryContents == null) { binaryContents = HttpObjectUtil.extractBinaryHttpEntityBody(httpMessage); } return binaryContents; }
/** * Retrieves the binary contents of this message. This method caches the contents, so repeated calls to this method should not incur a * penalty; however, modifications to the message contents outside of this class will result in stale data returned from this method. * * @return binary contents of the entity body */ public byte[] getBinaryContents() { // avoid re-extracting the contents if this method is called repeatedly if (binaryContents == null) { binaryContents = HttpObjectUtil.extractBinaryHttpEntityBody(httpMessage); } return binaryContents; }
/** * Retrieves the binary contents of this message. This method caches the contents, so repeated calls to this method should not incur a * penalty; however, modifications to the message contents outside of this class will result in stale data returned from this method. * * @return binary contents of the entity body */ public byte[] getBinaryContents() { // avoid re-extracting the contents if this method is called repeatedly if (binaryContents == null) { binaryContents = HttpObjectUtil.extractBinaryHttpEntityBody(httpMessage); } return binaryContents; }