org.apache.qpid.framing
Class AMQBody

java.lang.Object
  extended by org.apache.qpid.framing.AMQBody
Direct Known Subclasses:
AMQMethodBody, ContentBody, ContentHeaderBody, HeartbeatBody

public abstract class AMQBody
extends java.lang.Object


Constructor Summary
AMQBody()
           
 
Method Summary
protected abstract  int getSize()
          Get the size of the body
protected abstract  byte getType()
           
protected abstract  void populateFromBuffer(org.apache.mina.common.ByteBuffer buffer, long size)
           
protected abstract  void writePayload(org.apache.mina.common.ByteBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMQBody

public AMQBody()
Method Detail

getType

protected abstract byte getType()

getSize

protected abstract int getSize()
Get the size of the body

Returns:
unsigned short

writePayload

protected abstract void writePayload(org.apache.mina.common.ByteBuffer buffer)

populateFromBuffer

protected abstract void populateFromBuffer(org.apache.mina.common.ByteBuffer buffer,
                                           long size)
                                    throws AMQFrameDecodingException
Throws:
AMQFrameDecodingException