Class ConnectionStartBody
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
-
- org.apache.qpid.server.protocol.v0_8.transport.ConnectionStartBody
-
- All Implemented Interfaces:
AMQBody,AMQMethodBody,EncodableAMQDataBlock
public class ConnectionStartBody extends AMQMethodBodyImpl implements EncodableAMQDataBlock, AMQMethodBody
-
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_IDstatic intMETHOD_ID-
Fields inherited from class org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
TYPE
-
Fields inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBody
TYPE
-
-
Constructor Summary
Constructors Constructor Description ConnectionStartBody(short versionMajor, short versionMinor, FieldTable serverProperties, byte[] mechanisms, byte[] locales)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(MethodDispatcher dispatcher, int channelId)protected intgetBodySize()unsigned shortintgetClazz()byte[]getLocales()byte[]getMechanisms()intgetMethod()FieldTablegetServerProperties()shortgetVersionMajor()shortgetVersionMinor()static voidprocess(org.apache.qpid.server.bytebuffer.QpidByteBuffer in, ClientMethodProcessor dispatcher)java.lang.StringtoString()voidwriteMethodPayload(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)-
Methods inherited from class org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
generateFrame, getFrameType, getSize, getSizeOf, getSizeOf, getSizeOf, handle, writeAMQShortString, writeBitfield, writeByte, writeBytes, writeFieldTable, writeInt, writeLong, writePayload, writeShort, writeUnsignedByte, writeUnsignedInteger, writeUnsignedShort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQBody
getFrameType, handle, writePayload
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBody
generateFrame, getSize
-
-
-
-
Field Detail
-
CLASS_ID
public static final int CLASS_ID
- See Also:
- Constant Field Values
-
METHOD_ID
public static final int METHOD_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionStartBody
public ConnectionStartBody(short versionMajor, short versionMinor, FieldTable serverProperties, byte[] mechanisms, byte[] locales)
-
-
Method Detail
-
getClazz
public int getClazz()
- Specified by:
getClazzin interfaceAMQMethodBody- Returns:
- unsigned short
-
getMethod
public int getMethod()
- Specified by:
getMethodin interfaceAMQMethodBody- Returns:
- unsigned short
-
getVersionMajor
public final short getVersionMajor()
-
getVersionMinor
public final short getVersionMinor()
-
getServerProperties
public final FieldTable getServerProperties()
-
getMechanisms
public final byte[] getMechanisms()
-
getLocales
public final byte[] getLocales()
-
getBodySize
protected int getBodySize()
Description copied from class:AMQMethodBodyImplunsigned short- Specified by:
getBodySizein classAMQMethodBodyImpl- Returns:
- body size
-
writeMethodPayload
public void writeMethodPayload(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
- Specified by:
writeMethodPayloadin classAMQMethodBodyImpl
-
execute
public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException
- Specified by:
executein interfaceAMQMethodBody- Throws:
QpidException
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceAMQMethodBody- Overrides:
toStringin classjava.lang.Object
-
process
public static void process(org.apache.qpid.server.bytebuffer.QpidByteBuffer in, ClientMethodProcessor dispatcher) throws AMQFrameDecodingException- Throws:
AMQFrameDecodingException
-
-