org.apache.qpid.framing
Class AMQFrame

java.lang.Object
  extended by org.apache.qpid.framing.AMQDataBlock
      extended by org.apache.qpid.framing.AMQFrame
All Implemented Interfaces:
EncodableAMQDataBlock

public class AMQFrame
extends AMQDataBlock
implements EncodableAMQDataBlock


Field Summary
 AMQBody bodyFrame
           
 int channel
           
 
Constructor Summary
AMQFrame()
           
AMQFrame(int channel, AMQBody bodyFrame)
           
 
Method Summary
 long getSize()
          Get the size of buffer needed to store the byte representation of this frame.
 void populateFromBuffer(org.apache.mina.common.ByteBuffer buffer, int channel, long bodySize, BodyFactory bodyFactory)
           
 java.lang.String toString()
           
 void writePayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the datablock to the specified buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

channel

public int channel

bodyFrame

public AMQBody bodyFrame
Constructor Detail

AMQFrame

public AMQFrame()

AMQFrame

public AMQFrame(int channel,
                AMQBody bodyFrame)
Method Detail

getSize

public long getSize()
Description copied from class: AMQDataBlock
Get the size of buffer needed to store the byte representation of this frame.

Specified by:
getSize in class AMQDataBlock
Returns:
unsigned integer

writePayload

public void writePayload(org.apache.mina.common.ByteBuffer buffer)
Description copied from class: AMQDataBlock
Writes the datablock to the specified buffer.

Specified by:
writePayload in class AMQDataBlock

populateFromBuffer

public void populateFromBuffer(org.apache.mina.common.ByteBuffer buffer,
                               int channel,
                               long bodySize,
                               BodyFactory bodyFactory)
                        throws AMQFrameDecodingException
Parameters:
buffer -
channel - unsigned short
bodySize - unsigned integer
bodyFactory -
Throws:
AMQFrameDecodingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object