org.apache.qpid.framing
Class ProtocolInitiation

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

public class ProtocolInitiation
extends AMQDataBlock
implements EncodableAMQDataBlock


Nested Class Summary
static class ProtocolInitiation.Decoder
           
 
Field Summary
 char[] header
           
 byte protocolClass
           
 byte protocolInstance
           
 byte protocolMajor
           
 byte protocolMinor
           
 
Constructor Summary
ProtocolInitiation(byte major, byte minor)
           
 
Method Summary
 void checkVersion(ProtocolVersionList pvl)
           
 boolean equals(java.lang.Object o)
           
 long getSize()
          Get the size of buffer needed to store the byte representation of this frame.
 void populateFromBuffer(org.apache.mina.common.ByteBuffer buffer)
           
 void writePayload(org.apache.mina.common.ByteBuffer buffer)
          Writes the datablock to the specified buffer.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

header

public char[] header

protocolClass

public byte protocolClass

protocolInstance

public byte protocolInstance

protocolMajor

public byte protocolMajor

protocolMinor

public byte protocolMinor
Constructor Detail

ProtocolInitiation

public ProtocolInitiation(byte major,
                          byte minor)
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)
                        throws AMQException
Throws:
AMQException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

checkVersion

public void checkVersion(ProtocolVersionList pvl)
                  throws AMQException
Throws:
AMQException