org.apache.qpid.framing
Class ProtocolInitiation
java.lang.Object
org.apache.qpid.framing.AMQDataBlock
org.apache.qpid.framing.ProtocolInitiation
- All Implemented Interfaces:
- EncodableAMQDataBlock
public class ProtocolInitiation
- extends AMQDataBlock
- implements EncodableAMQDataBlock
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
header
public char[] header
protocolClass
public byte protocolClass
protocolInstance
public byte protocolInstance
protocolMajor
public byte protocolMajor
protocolMinor
public byte protocolMinor
ProtocolInitiation
public ProtocolInitiation(byte major,
byte minor)
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