Class ContentBody
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.transport.ContentBody
-
-
Field Summary
Fields Modifier and Type Field Description static byteTYPE
-
Constructor Summary
Constructors Constructor Description ContentBody(java.nio.ByteBuffer payload)ContentBody(org.apache.qpid.server.bytebuffer.QpidByteBuffer payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AMQFramecreateAMQFrame(int channelId, ContentBody body)voiddispose()bytegetFrameType()org.apache.qpid.server.bytebuffer.QpidByteBuffergetPayload()intgetSize()Get the size of the bodyvoidhandle(int channelId, AMQVersionAwareProtocolSession session)static voidprocess(org.apache.qpid.server.bytebuffer.QpidByteBuffer in, ChannelMethodProcessor methodProcessor, long bodySize)longwritePayload(org.apache.qpid.server.transport.ByteBufferSender sender)
-
-
-
Field Detail
-
TYPE
public static final byte TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFrameType
public byte getFrameType()
- Specified by:
getFrameTypein interfaceAMQBody
-
getSize
public int getSize()
Description copied from interface:AMQBodyGet the size of the body
-
handle
public void handle(int channelId, AMQVersionAwareProtocolSession session) throws QpidException- Specified by:
handlein interfaceAMQBody- Throws:
QpidException
-
writePayload
public long writePayload(org.apache.qpid.server.transport.ByteBufferSender sender)
- Specified by:
writePayloadin interfaceAMQBody
-
getPayload
public org.apache.qpid.server.bytebuffer.QpidByteBuffer getPayload()
-
dispose
public void dispose()
-
process
public static void process(org.apache.qpid.server.bytebuffer.QpidByteBuffer in, ChannelMethodProcessor methodProcessor, long bodySize)
-
createAMQFrame
public static AMQFrame createAMQFrame(int channelId, ContentBody body)
-
-