| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
ContentBody() |
ContentBody(byte[] payload) |
ContentBody(DataInput buffer,
long size) |
| Modifier and Type | Method and Description |
|---|---|
static AMQFrame |
createAMQFrame(int channelId,
ByteBuffer buf,
int offset,
int length) |
static AMQFrame |
createAMQFrame(int channelId,
ContentBody body) |
byte |
getFrameType() |
byte[] |
getPayload() |
int |
getSize()
Get the size of the body
|
void |
handle(int channelId,
AMQVersionAwareProtocolSession session) |
static void |
process(MarkableDataInput in,
ChannelMethodProcessor methodProcessor,
long bodySize) |
void |
writePayload(DataOutput buffer) |
public static final byte TYPE
public ContentBody()
public ContentBody(DataInput buffer, long size) throws AMQFrameDecodingException, IOException
AMQFrameDecodingExceptionIOExceptionpublic ContentBody(byte[] payload)
public byte getFrameType()
getFrameType in interface AMQBodypublic int getSize()
AMQBodypublic void writePayload(DataOutput buffer) throws IOException
writePayload in interface AMQBodyIOExceptionpublic void handle(int channelId,
AMQVersionAwareProtocolSession session)
throws AMQException
handle in interface AMQBodyAMQExceptionpublic byte[] getPayload()
public static void process(MarkableDataInput in, ChannelMethodProcessor methodProcessor, long bodySize) throws IOException
IOExceptionpublic static AMQFrame createAMQFrame(int channelId, ByteBuffer buf, int offset, int length)
public static AMQFrame createAMQFrame(int channelId, ContentBody body)
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.