Class ChannelOpenOkBody
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.transport.AMQMethodBodyImpl
-
- org.apache.qpid.server.protocol.v0_8.transport.ChannelOpenOkBody
-
- All Implemented Interfaces:
AMQBody,AMQMethodBody,EncodableAMQDataBlock
public class ChannelOpenOkBody extends AMQMethodBodyImpl implements EncodableAMQDataBlock, AMQMethodBody
-
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_IDstatic ChannelOpenOkBodyINSTANCE_0_8static ChannelOpenOkBodyINSTANCE_0_9static 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(MethodDispatcher dispatcher, int channelId)protected intgetBodySize()unsigned shortintgetClazz()static ChannelOpenOkBodygetInstance(ProtocolVersion protocolVersion, QpidByteBuffer input)intgetMethod()static voidprocess(QpidByteBuffer in, ProtocolVersion protocolVersion, ClientChannelMethodProcessor dispatcher)StringtoString()voidwriteMethodPayload(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
-
INSTANCE_0_8
public static final ChannelOpenOkBody INSTANCE_0_8
-
INSTANCE_0_9
public static final ChannelOpenOkBody INSTANCE_0_9
-
-
Method Detail
-
getInstance
public static ChannelOpenOkBody getInstance(ProtocolVersion protocolVersion, QpidByteBuffer input) throws IOException
- Throws:
IOException
-
getClazz
public int getClazz()
- Specified by:
getClazzin interfaceAMQMethodBody- Returns:
- unsigned short
-
getMethod
public int getMethod()
- Specified by:
getMethodin interfaceAMQMethodBody- Returns:
- unsigned short
-
getBodySize
protected int getBodySize()
Description copied from class:AMQMethodBodyImplunsigned short- Specified by:
getBodySizein classAMQMethodBodyImpl- Returns:
- body size
-
writeMethodPayload
public void writeMethodPayload(QpidByteBuffer buffer)
- Specified by:
writeMethodPayloadin classAMQMethodBodyImpl
-
execute
public boolean execute(MethodDispatcher dispatcher, int channelId) throws QpidException
- Specified by:
executein interfaceAMQMethodBody- Throws:
QpidException
-
toString
public String toString()
- Specified by:
toStringin interfaceAMQMethodBody- Overrides:
toStringin classObject
-
process
public static void process(QpidByteBuffer in, ProtocolVersion protocolVersion, ClientChannelMethodProcessor dispatcher)
-
-