| 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) |
protected void |
populateFromBuffer(DataInputStream buffer,
long size) |
void |
reduceBufferToFit() |
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 AMQBodyAMQExceptionprotected void populateFromBuffer(DataInputStream buffer, long size) throws AMQFrameDecodingException, IOException
AMQFrameDecodingExceptionIOExceptionpublic void reduceBufferToFit()
public byte[] getPayload()
public static AMQFrame createAMQFrame(int channelId, ByteBuffer buf, int offset, int length)
public static AMQFrame createAMQFrame(int channelId, ContentBody body)
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.