public abstract class AMQMethodBodyImpl extends Object implements AMQMethodBody
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
AMQMethodBodyImpl() |
| Modifier and Type | Method and Description |
|---|---|
AMQFrame |
generateFrame(int channelId) |
protected abstract int |
getBodySize()
unsigned short
|
byte |
getFrameType() |
int |
getSize()
Get the size of the body
|
protected int |
getSizeOf(AMQShortString string) |
protected int |
getSizeOf(byte[] response) |
protected int |
getSizeOf(FieldTable table) |
void |
handle(int channelId,
AMQVersionAwareProtocolSession session)
Creates an AMQChannelException for the corresponding body type (a channel exception should include the class and
method ids of the body it resulted from).
|
protected void |
writeAMQShortString(ByteBuffer buffer,
AMQShortString string) |
protected void |
writeBitfield(ByteBuffer buffer,
byte bitfield0) |
protected void |
writeByte(ByteBuffer buffer,
byte b) |
protected void |
writeBytes(ByteBuffer buffer,
byte[] data) |
protected void |
writeFieldTable(ByteBuffer buffer,
FieldTable table) |
protected void |
writeInt(ByteBuffer buffer,
int i) |
protected void |
writeLong(ByteBuffer buffer,
long l) |
protected abstract void |
writeMethodPayload(ByteBuffer buffer) |
long |
writePayload(ByteBufferSender sender) |
protected void |
writeShort(ByteBuffer buffer,
short s) |
protected void |
writeUnsignedByte(ByteBuffer buffer,
short unsignedByte) |
protected void |
writeUnsignedInteger(ByteBuffer buffer,
long i) |
protected void |
writeUnsignedShort(ByteBuffer buffer,
int s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getClazz, getMethod, toStringpublic static final byte TYPE
public byte getFrameType()
getFrameType in interface AMQBodyprotected abstract int getBodySize()
public AMQFrame generateFrame(int channelId)
generateFrame in interface AMQMethodBodypublic void handle(int channelId,
AMQVersionAwareProtocolSession session)
throws QpidException
handle in interface AMQBodyQpidExceptionpublic int getSize()
AMQBodygetSize in interface AMQBodygetSize in interface AMQMethodBodypublic long writePayload(ByteBufferSender sender)
writePayload in interface AMQBodyprotected abstract void writeMethodPayload(ByteBuffer buffer)
protected int getSizeOf(AMQShortString string)
protected void writeByte(ByteBuffer buffer, byte b)
protected void writeAMQShortString(ByteBuffer buffer, AMQShortString string)
protected void writeInt(ByteBuffer buffer, int i)
protected int getSizeOf(FieldTable table)
protected void writeFieldTable(ByteBuffer buffer, FieldTable table)
protected void writeLong(ByteBuffer buffer, long l)
protected int getSizeOf(byte[] response)
protected void writeBytes(ByteBuffer buffer, byte[] data)
protected void writeShort(ByteBuffer buffer, short s)
protected void writeBitfield(ByteBuffer buffer, byte bitfield0)
protected void writeUnsignedShort(ByteBuffer buffer, int s)
protected void writeUnsignedInteger(ByteBuffer buffer, long i)
protected void writeUnsignedByte(ByteBuffer buffer, short unsignedByte)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.