public BasicContentHeaderProperties createContentHeaderProperties(int classId, int propertyFlags, QpidByteBuffer buffer, int size) throws AMQFrameDecodingException { BasicContentHeaderProperties properties; if (classId == BasicConsumeBody.CLASS_ID) { properties = new BasicContentHeaderProperties(buffer, propertyFlags, size); } else { throw new AMQFrameDecodingException("Unsupported content header class id: " + classId, null); } return properties; } }
public static void process(final QpidByteBuffer buffer, final ChannelMethodProcessor methodProcessor, final long size) throws AMQFrameDecodingException { int classId = buffer.getUnsignedShort(); buffer.getUnsignedShort(); long bodySize = buffer.getLong(); int propertyFlags = buffer.getUnsignedShort(); BasicContentHeaderProperties properties; if (classId != CLASS_ID) { throw new AMQFrameDecodingException("Unsupported content header class id: " + classId, null); } properties = new BasicContentHeaderProperties(buffer, propertyFlags, (int)(size-14)); if(!methodProcessor.ignoreAllButCloseOk()) { methodProcessor.receiveMessageHeader(properties, bodySize); } else { properties.dispose(); } }
new BasicContentHeaderProperties(contentHeaderBody.getProperties()); modifiedProps.setEncoding((String)null); new BasicContentHeaderProperties(contentHeaderBody.getProperties()); modifiedProps.setEncoding(GZIP_ENCODING);
final BasicContentHeaderProperties props = new BasicContentHeaderProperties(); props.setAppId(serverMsg.getMessageHeader().getAppId()); props.setContentType(bodyMimeType);
final BasicContentHeaderProperties props = new BasicContentHeaderProperties(); props.setAppId(serverMsg.getMessageHeader().getAppId()); props.setContentType(bodyMimeType);