summaryrefslogtreecommitdiff
path: root/java/common/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2013-09-29 17:45:16 +0000
committerRobert Gemmell <robbie@apache.org>2013-09-29 17:45:16 +0000
commit1357c25e36d9921a7d2731848a252d4fa960203f (patch)
treee8a496004749d9d9dec378f04ab1911a4663ba36 /java/common/src
parentc4a0841859a991af801d5200c397dfb4b344db8d (diff)
downloadqpid-python-1357c25e36d9921a7d2731848a252d4fa960203f.tar.gz
QPID-5192: commit the protocol and logging files output by running the updated explicit generation process
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1527366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/ParseException.java208
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParser.java1224
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserConstants.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserTokenManager.java1066
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/SimpleCharStream.java492
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/Token.java152
-rw-r--r--java/common/src/main/java/org/apache/qpid/filter/selector/TokenMgrError.java168
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java46
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/AccessRequestOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicAckBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicCancelBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicCancelOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicConsumeBody.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicConsumeOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicDeliverBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicGetBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicGetEmptyBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicGetOkBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicPublishBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicQosBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicQosOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicRecoverOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicRejectBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/BasicReturnBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelCloseBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelCloseOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelFlowBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelFlowOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelOpenBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelOpenOkBody.java35
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelPingBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelPongBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ChannelResumeBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ClientMethodDispatcher.java66
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionRedirectBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionStartBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionStartOkBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneOkBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/DtxSelectBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/DtxSelectOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/DtxStartBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/DtxStartOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundOkBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareBody.java52
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileAckBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileCancelBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileCancelOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileConsumeBody.java49
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileConsumeOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileDeliverBody.java46
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileOpenBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileOpenOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FilePublishBody.java46
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileQosBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileQosOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileRejectBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileReturnBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/FileStageBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageAppendBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageCancelBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageCheckpointBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageCloseBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageConsumeBody.java48
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageEmptyBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageGetBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageOffsetBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageOpenBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageQosBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageRecoverBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageRejectBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageResumeBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MessageTransferBody.java78
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MethodDispatcher.java35
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/MethodRegistry.java358
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ProtocolVersion.java188
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueBindBody.java46
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueBindOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueDeclareBody.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueDeclareOkBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueDeleteBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueDeleteOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueuePurgeOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueUnbindBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/QueueUnbindOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/ServerMethodDispatcher.java67
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamCancelBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamCancelOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamConsumeBody.java47
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamConsumeOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamDeliverBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamPublishBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamQosBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamQosOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/StreamReturnBody.java42
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestContentBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestContentOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestIntegerBody.java44
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestIntegerOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestStringBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestStringOkBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestTableBody.java40
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TestTableOkBody.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TunnelRequestBody.java36
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxCommitBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxCommitOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxRollbackBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxRollbackOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxSelectBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/TxSelectOkBody.java34
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicAckBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicDeliverBodyImpl.java168
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetEmptyBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetOkBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicPublishBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRejectBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowOkBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPingBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPongBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelResumeBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ClientMethodDispatcher_0_9.java97
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenBodyImpl.java142
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionRedirectBodyImpl.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartBodyImpl.java162
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartOkBodyImpl.java151
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneOkBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundBodyImpl.java138
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundOkBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareBodyImpl.java220
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteBodyImpl.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileAckBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileDeliverBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FilePublishBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileRejectBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileStageBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageAppendBodyImpl.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCancelBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCheckpointBodyImpl.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCloseBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageConsumeBodyImpl.java194
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageEmptyBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageGetBodyImpl.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOffsetBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOpenBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRecoverBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRejectBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageResumeBodyImpl.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageTransferBodyImpl.java384
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodDispatcher_0_9.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodRegistry_0_9.java1591
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareOkBodyImpl.java136
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindBodyImpl.java163
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ServerMethodDispatcher_0_9.java105
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeBodyImpl.java194
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamDeliverBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamPublishBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosBodyImpl.java152
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TunnelRequestBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicAckBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicDeliverBodyImpl.java168
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetEmptyBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetOkBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicPublishBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRejectBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowOkBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ClientMethodDispatcher_0_91.java67
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenBodyImpl.java142
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartBodyImpl.java162
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartOkBodyImpl.java151
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneOkBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundBodyImpl.java138
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundOkBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareBodyImpl.java220
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteBodyImpl.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodDispatcher_0_91.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodRegistry_0_91.java877
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareOkBodyImpl.java136
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindBodyImpl.java163
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ServerMethodDispatcher_0_91.java69
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicAckBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicDeliverBodyImpl.java168
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetEmptyBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetOkBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicPublishBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRejectBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelAlertBodyImpl.java137
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowOkBodyImpl.java116
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ClientMethodDispatcher_8_0.java92
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseBodyImpl.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenBodyImpl.java142
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionRedirectBodyImpl.java125
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartBodyImpl.java162
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartOkBodyImpl.java151
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneOkBodyImpl.java135
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundBodyImpl.java138
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundOkBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareBodyImpl.java220
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteBodyImpl.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileAckBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeBodyImpl.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileDeliverBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FilePublishBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosBodyImpl.java140
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileRejectBodyImpl.java128
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileStageBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodDispatcher_8_0.java38
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodRegistry_8_0.java1407
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindBodyImpl.java181
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareBodyImpl.java207
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareOkBodyImpl.java136
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeBodyImpl.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ServerMethodDispatcher_8_0.java92
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelBodyImpl.java129
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeBodyImpl.java180
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamDeliverBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamPublishBodyImpl.java167
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosBodyImpl.java152
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamReturnBodyImpl.java150
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerBodyImpl.java159
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerOkBodyImpl.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringBodyImpl.java137
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringOkBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableBodyImpl.java136
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableOkBodyImpl.java124
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TunnelRequestBodyImpl.java112
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectOkBodyImpl.java100
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Acquired.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionClose.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseCode.java54
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseOk.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionHeartbeat.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionInvoker.java78
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionOpen.java235
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionOpenOk.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionRedirect.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionSecure.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionSecureOk.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionStart.java238
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionStartOk.java280
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionTune.java272
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ConnectionTuneOk.java232
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Constant.java29
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DeliveryProperties.java593
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxCommit.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxEnd.java232
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxForget.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxGetTimeout.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxPrepare.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxRecover.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxRollback.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxSelect.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxSetTimeout.java194
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxStart.java232
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/DtxXaStatus.java62
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeBind.java280
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeBound.java280
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeBoundResult.java301
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeDeclare.java397
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeDelete.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeQuery.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeQueryResult.java268
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExchangeUnbind.java238
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExecutionErrorCode.java72
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExecutionException.java398
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExecutionResult.java194
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ExecutionSync.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/FileReturnCode.java52
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/FragmentProperties.java224
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/GetTimeoutResult.java139
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageAccept.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageAcceptMode.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageAcquire.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageAcquireMode.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageCancel.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageCreditUnit.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryMode.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryPriority.java66
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageFlow.java236
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageFlowMode.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageFlush.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageProperties.java475
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageReject.java238
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageRejectCode.java52
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageRelease.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageResume.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageResumeResult.java139
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageSetFlowMode.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageStop.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageSubscribe.java443
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MessageTransfer.java302
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/MethodDelegate.java217
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Option.java60
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/QueueDeclare.java394
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/QueueDelete.java232
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/QueuePurge.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/QueueQuery.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/QueueQueryResult.java429
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/RecoverResult.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ReplyTo.java200
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SegmentType.java54
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionAttach.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionAttached.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionCommandFragment.java138
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionCommandPoint.java192
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionCompleted.java193
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionConfirmed.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionDetach.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionDetachCode.java56
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionDetached.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionExpected.java196
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionFlush.java229
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionGap.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionHeader.java145
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionInvoker.java236
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionKnownCompleted.java154
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionRequestTimeout.java152
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/SessionTimeout.java152
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/StreamReturnCode.java52
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/StructFactory.java200
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Track.java50
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/TxCommit.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/TxRollback.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/TxSelect.java111
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Type.java148
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/XaResult.java141
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/Xid.java223
491 files changed, 63972 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/ParseException.java b/java/common/src/main/java/org/apache/qpid/filter/selector/ParseException.java
new file mode 100644
index 0000000000..bf28ada12b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/ParseException.java
@@ -0,0 +1,208 @@
+/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 5.0 */
+/* JavaCCOptions:KEEP_LINE_COL=null */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+/**
+ * This exception is thrown when parse errors are encountered.
+ * You can explicitly create objects of this exception type by
+ * calling the method generateParseException in the generated
+ * parser.
+ *
+ * You can modify this class to customize your error reporting
+ * mechanisms so long as you retain the public fields.
+ */
+public class ParseException extends Exception {
+
+ /**
+ * The version identifier for this Serializable class.
+ * Increment only if the <i>serialized</i> form of the
+ * class changes.
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * This constructor is used by the method "generateParseException"
+ * in the generated parser. Calling this constructor generates
+ * a new object of this type with the fields "currentToken",
+ * "expectedTokenSequences", and "tokenImage" set.
+ */
+ public ParseException(Token currentTokenVal,
+ int[][] expectedTokenSequencesVal,
+ String[] tokenImageVal
+ )
+ {
+ super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal));
+ currentToken = currentTokenVal;
+ expectedTokenSequences = expectedTokenSequencesVal;
+ tokenImage = tokenImageVal;
+ }
+
+ /**
+ * The following constructors are for use by you for whatever
+ * purpose you can think of. Constructing the exception in this
+ * manner makes the exception behave in the normal way - i.e., as
+ * documented in the class "Throwable". The fields "errorToken",
+ * "expectedTokenSequences", and "tokenImage" do not contain
+ * relevant information. The JavaCC generated code does not use
+ * these constructors.
+ */
+
+ public ParseException() {
+ super();
+ }
+
+ /** Constructor with message. */
+ public ParseException(String message) {
+ super(message);
+ }
+
+
+ /**
+ * This is the last token that has been consumed successfully. If
+ * this object has been created due to a parse error, the token
+ * followng this token will (therefore) be the first error token.
+ */
+ public Token currentToken;
+
+ /**
+ * Each entry in this array is an array of integers. Each array
+ * of integers represents a sequence of tokens (by their ordinal
+ * values) that is expected at this point of the parse.
+ */
+ public int[][] expectedTokenSequences;
+
+ /**
+ * This is a reference to the "tokenImage" array of the generated
+ * parser within which the parse error occurred. This array is
+ * defined in the generated ...Constants interface.
+ */
+ public String[] tokenImage;
+
+ /**
+ * It uses "currentToken" and "expectedTokenSequences" to generate a parse
+ * error message and returns it. If this object has been created
+ * due to a parse error, and you do not catch it (it gets thrown
+ * from the parser) the correct error message
+ * gets displayed.
+ */
+ private static String initialise(Token currentToken,
+ int[][] expectedTokenSequences,
+ String[] tokenImage) {
+ String eol = System.getProperty("line.separator", "\n");
+ StringBuffer expected = new StringBuffer();
+ int maxSize = 0;
+ for (int i = 0; i < expectedTokenSequences.length; i++) {
+ if (maxSize < expectedTokenSequences[i].length) {
+ maxSize = expectedTokenSequences[i].length;
+ }
+ for (int j = 0; j < expectedTokenSequences[i].length; j++) {
+ expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
+ }
+ if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
+ expected.append("...");
+ }
+ expected.append(eol).append(" ");
+ }
+ String retval = "Encountered \"";
+ Token tok = currentToken.next;
+ for (int i = 0; i < maxSize; i++) {
+ if (i != 0) retval += " ";
+ if (tok.kind == 0) {
+ retval += tokenImage[0];
+ break;
+ }
+ retval += " " + tokenImage[tok.kind];
+ retval += " \"";
+ retval += add_escapes(tok.image);
+ retval += " \"";
+ tok = tok.next;
+ }
+ retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
+ retval += "." + eol;
+ if (expectedTokenSequences.length == 1) {
+ retval += "Was expecting:" + eol + " ";
+ } else {
+ retval += "Was expecting one of:" + eol + " ";
+ }
+ retval += expected.toString();
+ return retval;
+ }
+
+ /**
+ * The end of line string for this machine.
+ */
+ protected String eol = System.getProperty("line.separator", "\n");
+
+ /**
+ * Used to convert raw characters to their escaped version
+ * when these raw version cannot be used as part of an ASCII
+ * string literal.
+ */
+ static String add_escapes(String str) {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+ for (int i = 0; i < str.length(); i++) {
+ switch (str.charAt(i))
+ {
+ case 0 :
+ continue;
+ case '\b':
+ retval.append("\\b");
+ continue;
+ case '\t':
+ retval.append("\\t");
+ continue;
+ case '\n':
+ retval.append("\\n");
+ continue;
+ case '\f':
+ retval.append("\\f");
+ continue;
+ case '\r':
+ retval.append("\\r");
+ continue;
+ case '\"':
+ retval.append("\\\"");
+ continue;
+ case '\'':
+ retval.append("\\\'");
+ continue;
+ case '\\':
+ retval.append("\\\\");
+ continue;
+ default:
+ if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ } else {
+ retval.append(ch);
+ }
+ continue;
+ }
+ }
+ return retval.toString();
+ }
+
+}
+/* JavaCC - OriginalChecksum=d315306e736475f86f69c53861799960 (do not edit this line) */
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParser.java b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParser.java
new file mode 100644
index 0000000000..ed85de9d8e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParser.java
@@ -0,0 +1,1224 @@
+/* Generated By:JavaCC: Do not edit this line. SelectorParser.java */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+import java.io.StringReader;
+import java.util.ArrayList;
+
+import org.apache.qpid.filter.ArithmeticExpression;
+import org.apache.qpid.filter.BooleanExpression;
+import org.apache.qpid.filter.ComparisonExpression;
+import org.apache.qpid.filter.ConstantExpression;
+import org.apache.qpid.filter.Expression;
+import org.apache.qpid.filter.LogicExpression;
+import org.apache.qpid.filter.PropertyExpression;
+import org.apache.qpid.filter.UnaryExpression;
+
+/**
+ * JMS Selector Parser generated by JavaCC
+ *
+ * Do not edit this .java file directly - it is autogenerated from SelectorParser.jj
+ */
+public class SelectorParser implements SelectorParserConstants {
+
+ public SelectorParser()
+ {
+ this(new StringReader(""));
+ }
+
+ public BooleanExpression parse(String sql) throws ParseException
+ {
+ this.ReInit(new StringReader(sql));
+
+ return this.JmsSelector();
+
+ }
+
+ private BooleanExpression asBooleanExpression(Expression value) throws ParseException
+ {
+ if (value instanceof BooleanExpression)
+ {
+ return (BooleanExpression) value;
+ }
+ if (value instanceof PropertyExpression)
+ {
+ return UnaryExpression.createBooleanCast( value );
+ }
+ throw new ParseException("Expression will not result in a boolean value: " + value);
+ }
+
+// ----------------------------------------------------------------------------
+// Grammer
+// ----------------------------------------------------------------------------
+ final public BooleanExpression JmsSelector() throws ParseException {
+ Expression left=null;
+ left = orExpression();
+ {if (true) return asBooleanExpression(left);}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression orExpression() throws ParseException {
+ Expression left;
+ Expression right;
+ left = andExpression();
+ label_1:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case OR:
+ ;
+ break;
+ default:
+ break label_1;
+ }
+ jj_consume_token(OR);
+ right = andExpression();
+ left = LogicExpression.createOR(asBooleanExpression(left), asBooleanExpression(right));
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression andExpression() throws ParseException {
+ Expression left;
+ Expression right;
+ left = equalityExpression();
+ label_2:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case AND:
+ ;
+ break;
+ default:
+ break label_2;
+ }
+ jj_consume_token(AND);
+ right = equalityExpression();
+ left = LogicExpression.createAND(asBooleanExpression(left), asBooleanExpression(right));
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression equalityExpression() throws ParseException {
+ Expression left;
+ Expression right;
+ left = comparisonExpression();
+ label_3:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IS:
+ case 27:
+ case 28:
+ ;
+ break;
+ default:
+ break label_3;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 27:
+ jj_consume_token(27);
+ right = comparisonExpression();
+ left = ComparisonExpression.createEqual(left, right);
+ break;
+ case 28:
+ jj_consume_token(28);
+ right = comparisonExpression();
+ left = ComparisonExpression.createNotEqual(left, right);
+ break;
+ default:
+ if (jj_2_1(2)) {
+ jj_consume_token(IS);
+ jj_consume_token(NULL);
+ left = ComparisonExpression.createIsNull(left);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IS:
+ jj_consume_token(IS);
+ jj_consume_token(NOT);
+ jj_consume_token(NULL);
+ left = ComparisonExpression.createIsNotNull(left);
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression comparisonExpression() throws ParseException {
+ Expression left;
+ Expression right;
+ Expression low;
+ Expression high;
+ String t, u;
+ boolean not;
+ ArrayList list;
+ left = addExpression();
+ label_4:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case NOT:
+ case BETWEEN:
+ case LIKE:
+ case IN:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ ;
+ break;
+ default:
+ break label_4;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 29:
+ jj_consume_token(29);
+ right = addExpression();
+ left = ComparisonExpression.createGreaterThan(left, right);
+ break;
+ case 30:
+ jj_consume_token(30);
+ right = addExpression();
+ left = ComparisonExpression.createGreaterThanEqual(left, right);
+ break;
+ case 31:
+ jj_consume_token(31);
+ right = addExpression();
+ left = ComparisonExpression.createLessThan(left, right);
+ break;
+ case 32:
+ jj_consume_token(32);
+ right = addExpression();
+ left = ComparisonExpression.createLessThanEqual(left, right);
+ break;
+ case LIKE:
+ u=null;
+ jj_consume_token(LIKE);
+ t = stringLiteral();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ESCAPE:
+ jj_consume_token(ESCAPE);
+ u = stringLiteral();
+ break;
+ default:
+ ;
+ }
+ left = ComparisonExpression.createLike(left, t, u);
+ break;
+ default:
+ if (jj_2_2(2)) {
+ u=null;
+ jj_consume_token(NOT);
+ jj_consume_token(LIKE);
+ t = stringLiteral();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ESCAPE:
+ jj_consume_token(ESCAPE);
+ u = stringLiteral();
+ break;
+ default:
+ ;
+ }
+ left = ComparisonExpression.createNotLike(left, t, u);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case BETWEEN:
+ jj_consume_token(BETWEEN);
+ low = addExpression();
+ jj_consume_token(AND);
+ high = addExpression();
+ left = ComparisonExpression.createBetween(left, low, high);
+ break;
+ default:
+ if (jj_2_3(2)) {
+ jj_consume_token(NOT);
+ jj_consume_token(BETWEEN);
+ low = addExpression();
+ jj_consume_token(AND);
+ high = addExpression();
+ left = ComparisonExpression.createNotBetween(left, low, high);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IN:
+ jj_consume_token(IN);
+ jj_consume_token(33);
+ t = stringLiteral();
+ list = new ArrayList();
+ list.add( t );
+ label_5:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 34:
+ ;
+ break;
+ default:
+ break label_5;
+ }
+ jj_consume_token(34);
+ t = stringLiteral();
+ list.add( t );
+ }
+ jj_consume_token(35);
+ left = ComparisonExpression.createInFilter(left, list);
+ break;
+ default:
+ if (jj_2_4(2)) {
+ jj_consume_token(NOT);
+ jj_consume_token(IN);
+ jj_consume_token(33);
+ t = stringLiteral();
+ list = new ArrayList();
+ list.add( t );
+ label_6:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 34:
+ ;
+ break;
+ default:
+ break label_6;
+ }
+ jj_consume_token(34);
+ t = stringLiteral();
+ list.add( t );
+ }
+ jj_consume_token(35);
+ left = ComparisonExpression.createNotInFilter(left, list);
+ } else {
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression addExpression() throws ParseException {
+ Expression left;
+ Expression right;
+ left = multExpr();
+ label_7:
+ while (true) {
+ if (jj_2_5(2147483647)) {
+ ;
+ } else {
+ break label_7;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 36:
+ jj_consume_token(36);
+ right = multExpr();
+ left = ArithmeticExpression.createPlus(left, right);
+ break;
+ case 37:
+ jj_consume_token(37);
+ right = multExpr();
+ left = ArithmeticExpression.createMinus(left, right);
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression multExpr() throws ParseException {
+ Expression left;
+ Expression right;
+ left = unaryExpr();
+ label_8:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 38:
+ case 39:
+ case 40:
+ ;
+ break;
+ default:
+ break label_8;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 38:
+ jj_consume_token(38);
+ right = unaryExpr();
+ left = ArithmeticExpression.createMultiply(left, right);
+ break;
+ case 39:
+ jj_consume_token(39);
+ right = unaryExpr();
+ left = ArithmeticExpression.createDivide(left, right);
+ break;
+ case 40:
+ jj_consume_token(40);
+ right = unaryExpr();
+ left = ArithmeticExpression.createMod(left, right);
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression unaryExpr() throws ParseException {
+ String s=null;
+ Expression left=null;
+ if (jj_2_6(2147483647)) {
+ jj_consume_token(36);
+ left = unaryExpr();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 37:
+ jj_consume_token(37);
+ left = unaryExpr();
+ left = UnaryExpression.createNegate(left);
+ break;
+ case NOT:
+ jj_consume_token(NOT);
+ left = unaryExpr();
+ left = UnaryExpression.createNOT( asBooleanExpression(left) );
+ break;
+ case TRUE:
+ case FALSE:
+ case NULL:
+ case DECIMAL_LITERAL:
+ case HEX_LITERAL:
+ case OCTAL_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case STRING_LITERAL:
+ case ID:
+ case QUOTED_ID:
+ case 33:
+ left = primaryExpr();
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public Expression primaryExpr() throws ParseException {
+ Expression left=null;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case TRUE:
+ case FALSE:
+ case NULL:
+ case DECIMAL_LITERAL:
+ case HEX_LITERAL:
+ case OCTAL_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case STRING_LITERAL:
+ left = literal();
+ break;
+ case ID:
+ case QUOTED_ID:
+ left = variable();
+ break;
+ case 33:
+ jj_consume_token(33);
+ left = orExpression();
+ jj_consume_token(35);
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public ConstantExpression literal() throws ParseException {
+ Token t;
+ String s;
+ ConstantExpression left=null;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case STRING_LITERAL:
+ s = stringLiteral();
+ left = new ConstantExpression(s);
+ break;
+ case DECIMAL_LITERAL:
+ t = jj_consume_token(DECIMAL_LITERAL);
+ left = ConstantExpression.createFromDecimal(t.image);
+ break;
+ case HEX_LITERAL:
+ t = jj_consume_token(HEX_LITERAL);
+ left = ConstantExpression.createFromHex(t.image);
+ break;
+ case OCTAL_LITERAL:
+ t = jj_consume_token(OCTAL_LITERAL);
+ left = ConstantExpression.createFromOctal(t.image);
+ break;
+ case FLOATING_POINT_LITERAL:
+ t = jj_consume_token(FLOATING_POINT_LITERAL);
+ left = ConstantExpression.createFloat(t.image);
+ break;
+ case TRUE:
+ jj_consume_token(TRUE);
+ left = ConstantExpression.TRUE;
+ break;
+ case FALSE:
+ jj_consume_token(FALSE);
+ left = ConstantExpression.FALSE;
+ break;
+ case NULL:
+ jj_consume_token(NULL);
+ left = ConstantExpression.NULL;
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public String stringLiteral() throws ParseException {
+ Token t;
+ StringBuffer rc = new StringBuffer();
+ boolean first=true;
+ t = jj_consume_token(STRING_LITERAL);
+ // Decode the sting value.
+ String image = t.image;
+ for( int i=1; i < image.length()-1; i++ ) {
+ char c = image.charAt(i);
+ if( c == (char) 0x27 )//single quote
+ {
+ i++;
+ }
+ rc.append(c);
+ }
+ {if (true) return rc.toString();}
+ throw new Error("Missing return statement in function");
+ }
+
+ final public PropertyExpression variable() throws ParseException {
+ Token t;
+ StringBuffer rc = new StringBuffer();
+ PropertyExpression left=null;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case ID:
+ t = jj_consume_token(ID);
+ left = new PropertyExpression(t.image);
+ break;
+ case QUOTED_ID:
+ t = jj_consume_token(QUOTED_ID);
+ // Decode the sting value.
+ String image = t.image;
+ for( int i=1; i < image.length()-1; i++ ) {
+ char c = image.charAt(i);
+ if( c == '"' )
+ {
+ i++;
+ }
+ rc.append(c);
+ }
+ {if (true) return new PropertyExpression(rc.toString());}
+ break;
+ default:
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ {if (true) return left;}
+ throw new Error("Missing return statement in function");
+ }
+
+ private boolean jj_2_1(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_1(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_2_2(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_2(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_2_3(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_3(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_2_4(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_4(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_2_5(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_5(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_2_6(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ try { return !jj_3_6(); }
+ catch(LookaheadSuccess ls) { return true; }
+ }
+
+ private boolean jj_3R_59() {
+ if (jj_scan_token(ESCAPE)) return true;
+ if (jj_3R_38()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_38() {
+ if (jj_scan_token(STRING_LITERAL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_15() {
+ if (jj_3R_19()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_14() {
+ if (jj_scan_token(NOT)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_12() {
+ if (jj_scan_token(36)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_55() {
+ if (jj_scan_token(IN)) return true;
+ if (jj_scan_token(33)) return true;
+ if (jj_3R_38()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_60()) { jj_scanpos = xsp; break; }
+ }
+ if (jj_scan_token(35)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_47() {
+ if (jj_scan_token(IS)) return true;
+ if (jj_scan_token(NOT)) return true;
+ if (jj_scan_token(NULL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_13() {
+ if (jj_scan_token(37)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_33() {
+ if (jj_scan_token(NULL)) return true;
+ return false;
+ }
+
+ private boolean jj_3_1() {
+ if (jj_scan_token(IS)) return true;
+ if (jj_scan_token(NULL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_10() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_12()) {
+ jj_scanpos = xsp;
+ if (jj_3R_13()) {
+ jj_scanpos = xsp;
+ if (jj_3R_14()) {
+ jj_scanpos = xsp;
+ if (jj_3R_15()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_46() {
+ if (jj_scan_token(28)) return true;
+ if (jj_3R_41()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_32() {
+ if (jj_scan_token(FALSE)) return true;
+ return false;
+ }
+
+ private boolean jj_3_3() {
+ if (jj_scan_token(NOT)) return true;
+ if (jj_scan_token(BETWEEN)) return true;
+ if (jj_3R_43()) return true;
+ if (jj_scan_token(AND)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_45() {
+ if (jj_scan_token(27)) return true;
+ if (jj_3R_41()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_42() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_45()) {
+ jj_scanpos = xsp;
+ if (jj_3R_46()) {
+ jj_scanpos = xsp;
+ if (jj_3_1()) {
+ jj_scanpos = xsp;
+ if (jj_3R_47()) return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_54() {
+ if (jj_scan_token(BETWEEN)) return true;
+ if (jj_3R_43()) return true;
+ if (jj_scan_token(AND)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_31() {
+ if (jj_scan_token(TRUE)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_58() {
+ if (jj_scan_token(ESCAPE)) return true;
+ if (jj_3R_38()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_18() {
+ if (jj_scan_token(40)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_30() {
+ if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_39() {
+ if (jj_3R_41()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_42()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3_2() {
+ if (jj_scan_token(NOT)) return true;
+ if (jj_scan_token(LIKE)) return true;
+ if (jj_3R_38()) return true;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_59()) jj_scanpos = xsp;
+ return false;
+ }
+
+ private boolean jj_3R_53() {
+ if (jj_scan_token(LIKE)) return true;
+ if (jj_3R_38()) return true;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_58()) jj_scanpos = xsp;
+ return false;
+ }
+
+ private boolean jj_3R_17() {
+ if (jj_scan_token(39)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_29() {
+ if (jj_scan_token(OCTAL_LITERAL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_16() {
+ if (jj_scan_token(38)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_11() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_16()) {
+ jj_scanpos = xsp;
+ if (jj_3R_17()) {
+ jj_scanpos = xsp;
+ if (jj_3R_18()) return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_40() {
+ if (jj_scan_token(AND)) return true;
+ if (jj_3R_39()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_28() {
+ if (jj_scan_token(HEX_LITERAL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_9() {
+ if (jj_3R_10()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_11()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_27() {
+ if (jj_scan_token(DECIMAL_LITERAL)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_57() {
+ if (jj_scan_token(37)) return true;
+ if (jj_3R_9()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_36() {
+ if (jj_3R_39()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_40()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3_5() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_scan_token(36)) {
+ jj_scanpos = xsp;
+ if (jj_scan_token(37)) return true;
+ }
+ if (jj_3R_9()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_52() {
+ if (jj_scan_token(32)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_35() {
+ if (jj_scan_token(QUOTED_ID)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_56() {
+ if (jj_scan_token(36)) return true;
+ if (jj_3R_9()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_26() {
+ if (jj_3R_38()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_51() {
+ if (jj_scan_token(31)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_34() {
+ if (jj_scan_token(ID)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_61() {
+ if (jj_scan_token(34)) return true;
+ if (jj_3R_38()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_48() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_56()) {
+ jj_scanpos = xsp;
+ if (jj_3R_57()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_37() {
+ if (jj_scan_token(OR)) return true;
+ if (jj_3R_36()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_23() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_26()) {
+ jj_scanpos = xsp;
+ if (jj_3R_27()) {
+ jj_scanpos = xsp;
+ if (jj_3R_28()) {
+ jj_scanpos = xsp;
+ if (jj_3R_29()) {
+ jj_scanpos = xsp;
+ if (jj_3R_30()) {
+ jj_scanpos = xsp;
+ if (jj_3R_31()) {
+ jj_scanpos = xsp;
+ if (jj_3R_32()) {
+ jj_scanpos = xsp;
+ if (jj_3R_33()) return true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_50() {
+ if (jj_scan_token(30)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_24() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_34()) {
+ jj_scanpos = xsp;
+ if (jj_3R_35()) return true;
+ }
+ return false;
+ }
+
+ private boolean jj_3R_49() {
+ if (jj_scan_token(29)) return true;
+ if (jj_3R_43()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_44() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_49()) {
+ jj_scanpos = xsp;
+ if (jj_3R_50()) {
+ jj_scanpos = xsp;
+ if (jj_3R_51()) {
+ jj_scanpos = xsp;
+ if (jj_3R_52()) {
+ jj_scanpos = xsp;
+ if (jj_3R_53()) {
+ jj_scanpos = xsp;
+ if (jj_3_2()) {
+ jj_scanpos = xsp;
+ if (jj_3R_54()) {
+ jj_scanpos = xsp;
+ if (jj_3_3()) {
+ jj_scanpos = xsp;
+ if (jj_3R_55()) {
+ jj_scanpos = xsp;
+ if (jj_3_4()) return true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_43() {
+ if (jj_3R_9()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_48()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_25() {
+ if (jj_3R_36()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_37()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_22() {
+ if (jj_scan_token(33)) return true;
+ if (jj_3R_25()) return true;
+ if (jj_scan_token(35)) return true;
+ return false;
+ }
+
+ private boolean jj_3R_21() {
+ if (jj_3R_24()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_20() {
+ if (jj_3R_23()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_60() {
+ if (jj_scan_token(34)) return true;
+ if (jj_3R_38()) return true;
+ return false;
+ }
+
+ private boolean jj_3R_19() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_20()) {
+ jj_scanpos = xsp;
+ if (jj_3R_21()) {
+ jj_scanpos = xsp;
+ if (jj_3R_22()) return true;
+ }
+ }
+ return false;
+ }
+
+ private boolean jj_3R_41() {
+ if (jj_3R_43()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_44()) { jj_scanpos = xsp; break; }
+ }
+ return false;
+ }
+
+ private boolean jj_3_4() {
+ if (jj_scan_token(NOT)) return true;
+ if (jj_scan_token(IN)) return true;
+ if (jj_scan_token(33)) return true;
+ if (jj_3R_38()) return true;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_61()) { jj_scanpos = xsp; break; }
+ }
+ if (jj_scan_token(35)) return true;
+ return false;
+ }
+
+ private boolean jj_3_6() {
+ if (jj_scan_token(36)) return true;
+ if (jj_3R_10()) return true;
+ return false;
+ }
+
+ /** Generated Token Manager. */
+ public SelectorParserTokenManager token_source;
+ SimpleCharStream jj_input_stream;
+ /** Current token. */
+ public Token token;
+ /** Next token. */
+ public Token jj_nt;
+ private int jj_ntk;
+ private Token jj_scanpos, jj_lastpos;
+ private int jj_la;
+
+ /** Constructor with InputStream. */
+ public SelectorParser(java.io.InputStream stream) {
+ this(stream, null);
+ }
+ /** Constructor with InputStream and supplied encoding */
+ public SelectorParser(java.io.InputStream stream, String encoding) {
+ try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
+ token_source = new SelectorParserTokenManager(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream stream) {
+ ReInit(stream, null);
+ }
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream stream, String encoding) {
+ try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
+ token_source.ReInit(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ /** Constructor. */
+ public SelectorParser(java.io.Reader stream) {
+ jj_input_stream = new SimpleCharStream(stream, 1, 1);
+ token_source = new SelectorParserTokenManager(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.Reader stream) {
+ jj_input_stream.ReInit(stream, 1, 1);
+ token_source.ReInit(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ /** Constructor with generated Token Manager. */
+ public SelectorParser(SelectorParserTokenManager tm) {
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ /** Reinitialise. */
+ public void ReInit(SelectorParserTokenManager tm) {
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ }
+
+ private Token jj_consume_token(int kind) throws ParseException {
+ Token oldToken;
+ if ((oldToken = token).next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ if (token.kind == kind) {
+ return token;
+ }
+ token = oldToken;
+ throw generateParseException();
+ }
+
+ static private final class LookaheadSuccess extends java.lang.Error { }
+ final private LookaheadSuccess jj_ls = new LookaheadSuccess();
+ private boolean jj_scan_token(int kind) {
+ if (jj_scanpos == jj_lastpos) {
+ jj_la--;
+ if (jj_scanpos.next == null) {
+ jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
+ } else {
+ jj_lastpos = jj_scanpos = jj_scanpos.next;
+ }
+ } else {
+ jj_scanpos = jj_scanpos.next;
+ }
+ if (jj_scanpos.kind != kind) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
+ return false;
+ }
+
+
+/** Get the next Token. */
+ final public Token getNextToken() {
+ if (token.next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ return token;
+ }
+
+/** Get the specific Token. */
+ final public Token getToken(int index) {
+ Token t = token;
+ for (int i = 0; i < index; i++) {
+ if (t.next != null) t = t.next;
+ else t = t.next = token_source.getNextToken();
+ }
+ return t;
+ }
+
+ private int jj_ntk() {
+ if ((jj_nt=token.next) == null)
+ return (jj_ntk = (token.next=token_source.getNextToken()).kind);
+ else
+ return (jj_ntk = jj_nt.kind);
+ }
+
+ /** Generate ParseException. */
+ public ParseException generateParseException() {
+ Token errortok = token.next;
+ int line = errortok.beginLine, column = errortok.beginColumn;
+ String mess = (errortok.kind == 0) ? tokenImage[0] : errortok.image;
+ return new ParseException("Parse error at line " + line + ", column " + column + ". Encountered: " + mess);
+ }
+
+ /** Enable tracing. */
+ final public void enable_tracing() {
+ }
+
+ /** Disable tracing. */
+ final public void disable_tracing() {
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserConstants.java b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserConstants.java
new file mode 100644
index 0000000000..2ffdcddc6c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserConstants.java
@@ -0,0 +1,125 @@
+/* Generated By:JavaCC: Do not edit this line. SelectorParserConstants.java */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+
+/**
+ * Token literal values and constants.
+ * Generated by org.javacc.parser.OtherFilesGen#start()
+ */
+public interface SelectorParserConstants {
+
+ /** End of File. */
+ int EOF = 0;
+ /** RegularExpression Id. */
+ int LINE_COMMENT = 6;
+ /** RegularExpression Id. */
+ int BLOCK_COMMENT = 7;
+ /** RegularExpression Id. */
+ int NOT = 8;
+ /** RegularExpression Id. */
+ int AND = 9;
+ /** RegularExpression Id. */
+ int OR = 10;
+ /** RegularExpression Id. */
+ int BETWEEN = 11;
+ /** RegularExpression Id. */
+ int LIKE = 12;
+ /** RegularExpression Id. */
+ int ESCAPE = 13;
+ /** RegularExpression Id. */
+ int IN = 14;
+ /** RegularExpression Id. */
+ int IS = 15;
+ /** RegularExpression Id. */
+ int TRUE = 16;
+ /** RegularExpression Id. */
+ int FALSE = 17;
+ /** RegularExpression Id. */
+ int NULL = 18;
+ /** RegularExpression Id. */
+ int DECIMAL_LITERAL = 19;
+ /** RegularExpression Id. */
+ int HEX_LITERAL = 20;
+ /** RegularExpression Id. */
+ int OCTAL_LITERAL = 21;
+ /** RegularExpression Id. */
+ int FLOATING_POINT_LITERAL = 22;
+ /** RegularExpression Id. */
+ int EXPONENT = 23;
+ /** RegularExpression Id. */
+ int STRING_LITERAL = 24;
+ /** RegularExpression Id. */
+ int ID = 25;
+ /** RegularExpression Id. */
+ int QUOTED_ID = 26;
+
+ /** Lexical state. */
+ int DEFAULT = 0;
+
+ /** Literal token values. */
+ String[] tokenImage = {
+ "<EOF>",
+ "\" \"",
+ "\"\\t\"",
+ "\"\\n\"",
+ "\"\\r\"",
+ "\"\\f\"",
+ "<LINE_COMMENT>",
+ "<BLOCK_COMMENT>",
+ "\"NOT\"",
+ "\"AND\"",
+ "\"OR\"",
+ "\"BETWEEN\"",
+ "\"LIKE\"",
+ "\"ESCAPE\"",
+ "\"IN\"",
+ "\"IS\"",
+ "\"TRUE\"",
+ "\"FALSE\"",
+ "\"NULL\"",
+ "<DECIMAL_LITERAL>",
+ "<HEX_LITERAL>",
+ "<OCTAL_LITERAL>",
+ "<FLOATING_POINT_LITERAL>",
+ "<EXPONENT>",
+ "<STRING_LITERAL>",
+ "<ID>",
+ "<QUOTED_ID>",
+ "\"=\"",
+ "\"<>\"",
+ "\">\"",
+ "\">=\"",
+ "\"<\"",
+ "\"<=\"",
+ "\"(\"",
+ "\",\"",
+ "\")\"",
+ "\"+\"",
+ "\"-\"",
+ "\"*\"",
+ "\"/\"",
+ "\"%\"",
+ };
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserTokenManager.java b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserTokenManager.java
new file mode 100644
index 0000000000..96781acf84
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/SelectorParserTokenManager.java
@@ -0,0 +1,1066 @@
+/* Generated By:JavaCC: Do not edit this line. SelectorParserTokenManager.java */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+import java.io.StringReader;
+import java.util.ArrayList;
+import org.apache.qpid.filter.ArithmeticExpression;
+import org.apache.qpid.filter.BooleanExpression;
+import org.apache.qpid.filter.ComparisonExpression;
+import org.apache.qpid.filter.ConstantExpression;
+import org.apache.qpid.filter.Expression;
+import org.apache.qpid.filter.LogicExpression;
+import org.apache.qpid.filter.PropertyExpression;
+import org.apache.qpid.filter.UnaryExpression;
+
+/** Token Manager. */
+public class SelectorParserTokenManager implements SelectorParserConstants
+{
+
+ /** Debug output. */
+ public java.io.PrintStream debugStream = System.out;
+ /** Set debug output. */
+ public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
+private int jjStopAtPos(int pos, int kind)
+{
+ jjmatchedKind = kind;
+ jjmatchedPos = pos;
+ return pos + 1;
+}
+private int jjMoveStringLiteralDfa0_0()
+{
+ switch(curChar)
+ {
+ case 9:
+ jjmatchedKind = 2;
+ return jjMoveNfa_0(5, 0);
+ case 10:
+ jjmatchedKind = 3;
+ return jjMoveNfa_0(5, 0);
+ case 12:
+ jjmatchedKind = 5;
+ return jjMoveNfa_0(5, 0);
+ case 13:
+ jjmatchedKind = 4;
+ return jjMoveNfa_0(5, 0);
+ case 32:
+ jjmatchedKind = 1;
+ return jjMoveNfa_0(5, 0);
+ case 37:
+ jjmatchedKind = 40;
+ return jjMoveNfa_0(5, 0);
+ case 40:
+ jjmatchedKind = 33;
+ return jjMoveNfa_0(5, 0);
+ case 41:
+ jjmatchedKind = 35;
+ return jjMoveNfa_0(5, 0);
+ case 42:
+ jjmatchedKind = 38;
+ return jjMoveNfa_0(5, 0);
+ case 43:
+ jjmatchedKind = 36;
+ return jjMoveNfa_0(5, 0);
+ case 44:
+ jjmatchedKind = 34;
+ return jjMoveNfa_0(5, 0);
+ case 45:
+ jjmatchedKind = 37;
+ return jjMoveNfa_0(5, 0);
+ case 47:
+ jjmatchedKind = 39;
+ return jjMoveNfa_0(5, 0);
+ case 60:
+ jjmatchedKind = 31;
+ return jjMoveStringLiteralDfa1_0(0x110000000L);
+ case 61:
+ jjmatchedKind = 27;
+ return jjMoveNfa_0(5, 0);
+ case 62:
+ jjmatchedKind = 29;
+ return jjMoveStringLiteralDfa1_0(0x40000000L);
+ case 65:
+ return jjMoveStringLiteralDfa1_0(0x200L);
+ case 66:
+ return jjMoveStringLiteralDfa1_0(0x800L);
+ case 69:
+ return jjMoveStringLiteralDfa1_0(0x2000L);
+ case 70:
+ return jjMoveStringLiteralDfa1_0(0x20000L);
+ case 73:
+ return jjMoveStringLiteralDfa1_0(0xc000L);
+ case 76:
+ return jjMoveStringLiteralDfa1_0(0x1000L);
+ case 78:
+ return jjMoveStringLiteralDfa1_0(0x40100L);
+ case 79:
+ return jjMoveStringLiteralDfa1_0(0x400L);
+ case 84:
+ return jjMoveStringLiteralDfa1_0(0x10000L);
+ case 97:
+ return jjMoveStringLiteralDfa1_0(0x200L);
+ case 98:
+ return jjMoveStringLiteralDfa1_0(0x800L);
+ case 101:
+ return jjMoveStringLiteralDfa1_0(0x2000L);
+ case 102:
+ return jjMoveStringLiteralDfa1_0(0x20000L);
+ case 105:
+ return jjMoveStringLiteralDfa1_0(0xc000L);
+ case 108:
+ return jjMoveStringLiteralDfa1_0(0x1000L);
+ case 110:
+ return jjMoveStringLiteralDfa1_0(0x40100L);
+ case 111:
+ return jjMoveStringLiteralDfa1_0(0x400L);
+ case 116:
+ return jjMoveStringLiteralDfa1_0(0x10000L);
+ default :
+ return jjMoveNfa_0(5, 0);
+ }
+}
+private int jjMoveStringLiteralDfa1_0(long active0)
+{
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 0);
+ }
+ switch(curChar)
+ {
+ case 61:
+ if ((active0 & 0x40000000L) != 0L)
+ {
+ jjmatchedKind = 30;
+ jjmatchedPos = 1;
+ }
+ else if ((active0 & 0x100000000L) != 0L)
+ {
+ jjmatchedKind = 32;
+ jjmatchedPos = 1;
+ }
+ break;
+ case 62:
+ if ((active0 & 0x10000000L) != 0L)
+ {
+ jjmatchedKind = 28;
+ jjmatchedPos = 1;
+ }
+ break;
+ case 65:
+ return jjMoveStringLiteralDfa2_0(active0, 0x20000L);
+ case 69:
+ return jjMoveStringLiteralDfa2_0(active0, 0x800L);
+ case 73:
+ return jjMoveStringLiteralDfa2_0(active0, 0x1000L);
+ case 78:
+ if ((active0 & 0x4000L) != 0L)
+ {
+ jjmatchedKind = 14;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x200L);
+ case 79:
+ return jjMoveStringLiteralDfa2_0(active0, 0x100L);
+ case 82:
+ if ((active0 & 0x400L) != 0L)
+ {
+ jjmatchedKind = 10;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x10000L);
+ case 83:
+ if ((active0 & 0x8000L) != 0L)
+ {
+ jjmatchedKind = 15;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x2000L);
+ case 85:
+ return jjMoveStringLiteralDfa2_0(active0, 0x40000L);
+ case 97:
+ return jjMoveStringLiteralDfa2_0(active0, 0x20000L);
+ case 101:
+ return jjMoveStringLiteralDfa2_0(active0, 0x800L);
+ case 105:
+ return jjMoveStringLiteralDfa2_0(active0, 0x1000L);
+ case 110:
+ if ((active0 & 0x4000L) != 0L)
+ {
+ jjmatchedKind = 14;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x200L);
+ case 111:
+ return jjMoveStringLiteralDfa2_0(active0, 0x100L);
+ case 114:
+ if ((active0 & 0x400L) != 0L)
+ {
+ jjmatchedKind = 10;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x10000L);
+ case 115:
+ if ((active0 & 0x8000L) != 0L)
+ {
+ jjmatchedKind = 15;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0x2000L);
+ case 117:
+ return jjMoveStringLiteralDfa2_0(active0, 0x40000L);
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 1);
+}
+private int jjMoveStringLiteralDfa2_0(long old0, long active0)
+{
+ if (((active0 &= old0)) == 0L)
+ return jjMoveNfa_0(5, 1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 1);
+ }
+ switch(curChar)
+ {
+ case 67:
+ return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
+ case 68:
+ if ((active0 & 0x200L) != 0L)
+ {
+ jjmatchedKind = 9;
+ jjmatchedPos = 2;
+ }
+ break;
+ case 75:
+ return jjMoveStringLiteralDfa3_0(active0, 0x1000L);
+ case 76:
+ return jjMoveStringLiteralDfa3_0(active0, 0x60000L);
+ case 84:
+ if ((active0 & 0x100L) != 0L)
+ {
+ jjmatchedKind = 8;
+ jjmatchedPos = 2;
+ }
+ return jjMoveStringLiteralDfa3_0(active0, 0x800L);
+ case 85:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
+ case 99:
+ return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
+ case 100:
+ if ((active0 & 0x200L) != 0L)
+ {
+ jjmatchedKind = 9;
+ jjmatchedPos = 2;
+ }
+ break;
+ case 107:
+ return jjMoveStringLiteralDfa3_0(active0, 0x1000L);
+ case 108:
+ return jjMoveStringLiteralDfa3_0(active0, 0x60000L);
+ case 116:
+ if ((active0 & 0x100L) != 0L)
+ {
+ jjmatchedKind = 8;
+ jjmatchedPos = 2;
+ }
+ return jjMoveStringLiteralDfa3_0(active0, 0x800L);
+ case 117:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 2);
+}
+private int jjMoveStringLiteralDfa3_0(long old0, long active0)
+{
+ if (((active0 &= old0)) == 0L)
+ return jjMoveNfa_0(5, 2);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 2);
+ }
+ switch(curChar)
+ {
+ case 65:
+ return jjMoveStringLiteralDfa4_0(active0, 0x2000L);
+ case 69:
+ if ((active0 & 0x1000L) != 0L)
+ {
+ jjmatchedKind = 12;
+ jjmatchedPos = 3;
+ }
+ else if ((active0 & 0x10000L) != 0L)
+ {
+ jjmatchedKind = 16;
+ jjmatchedPos = 3;
+ }
+ break;
+ case 76:
+ if ((active0 & 0x40000L) != 0L)
+ {
+ jjmatchedKind = 18;
+ jjmatchedPos = 3;
+ }
+ break;
+ case 83:
+ return jjMoveStringLiteralDfa4_0(active0, 0x20000L);
+ case 87:
+ return jjMoveStringLiteralDfa4_0(active0, 0x800L);
+ case 97:
+ return jjMoveStringLiteralDfa4_0(active0, 0x2000L);
+ case 101:
+ if ((active0 & 0x1000L) != 0L)
+ {
+ jjmatchedKind = 12;
+ jjmatchedPos = 3;
+ }
+ else if ((active0 & 0x10000L) != 0L)
+ {
+ jjmatchedKind = 16;
+ jjmatchedPos = 3;
+ }
+ break;
+ case 108:
+ if ((active0 & 0x40000L) != 0L)
+ {
+ jjmatchedKind = 18;
+ jjmatchedPos = 3;
+ }
+ break;
+ case 115:
+ return jjMoveStringLiteralDfa4_0(active0, 0x20000L);
+ case 119:
+ return jjMoveStringLiteralDfa4_0(active0, 0x800L);
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 3);
+}
+private int jjMoveStringLiteralDfa4_0(long old0, long active0)
+{
+ if (((active0 &= old0)) == 0L)
+ return jjMoveNfa_0(5, 3);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 3);
+ }
+ switch(curChar)
+ {
+ case 69:
+ if ((active0 & 0x20000L) != 0L)
+ {
+ jjmatchedKind = 17;
+ jjmatchedPos = 4;
+ }
+ return jjMoveStringLiteralDfa5_0(active0, 0x800L);
+ case 80:
+ return jjMoveStringLiteralDfa5_0(active0, 0x2000L);
+ case 101:
+ if ((active0 & 0x20000L) != 0L)
+ {
+ jjmatchedKind = 17;
+ jjmatchedPos = 4;
+ }
+ return jjMoveStringLiteralDfa5_0(active0, 0x800L);
+ case 112:
+ return jjMoveStringLiteralDfa5_0(active0, 0x2000L);
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 4);
+}
+private int jjMoveStringLiteralDfa5_0(long old0, long active0)
+{
+ if (((active0 &= old0)) == 0L)
+ return jjMoveNfa_0(5, 4);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 4);
+ }
+ switch(curChar)
+ {
+ case 69:
+ if ((active0 & 0x2000L) != 0L)
+ {
+ jjmatchedKind = 13;
+ jjmatchedPos = 5;
+ }
+ return jjMoveStringLiteralDfa6_0(active0, 0x800L);
+ case 101:
+ if ((active0 & 0x2000L) != 0L)
+ {
+ jjmatchedKind = 13;
+ jjmatchedPos = 5;
+ }
+ return jjMoveStringLiteralDfa6_0(active0, 0x800L);
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 5);
+}
+private int jjMoveStringLiteralDfa6_0(long old0, long active0)
+{
+ if (((active0 &= old0)) == 0L)
+ return jjMoveNfa_0(5, 5);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ return jjMoveNfa_0(5, 5);
+ }
+ switch(curChar)
+ {
+ case 78:
+ if ((active0 & 0x800L) != 0L)
+ {
+ jjmatchedKind = 11;
+ jjmatchedPos = 6;
+ }
+ break;
+ case 110:
+ if ((active0 & 0x800L) != 0L)
+ {
+ jjmatchedKind = 11;
+ jjmatchedPos = 6;
+ }
+ break;
+ default :
+ break;
+ }
+ return jjMoveNfa_0(5, 6);
+}
+static final long[] jjbitVec0 = {
+ 0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
+};
+static final long[] jjbitVec2 = {
+ 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
+};
+private int jjMoveNfa_0(int startState, int curPos)
+{
+ int strKind = jjmatchedKind;
+ int strPos = jjmatchedPos;
+ int seenUpto;
+ input_stream.backup(seenUpto = curPos + 1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { throw new Error("Internal Error"); }
+ curPos = 0;
+ int startsAt = 0;
+ jjnewStateCnt = 48;
+ int i = 1;
+ jjstateSet[0] = startState;
+ int kind = 0x7fffffff;
+ for (;;)
+ {
+ if (++jjround == 0x7fffffff)
+ ReInitRounds();
+ if (curChar < 64)
+ {
+ long l = 1L << curChar;
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 5:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(0, 3);
+ else if (curChar == 34)
+ jjCheckNAddStates(4, 6);
+ else if (curChar == 36)
+ {
+ if (kind > 25)
+ kind = 25;
+ jjCheckNAdd(27);
+ }
+ else if (curChar == 39)
+ jjCheckNAddStates(7, 9);
+ else if (curChar == 46)
+ jjCheckNAdd(17);
+ else if (curChar == 47)
+ jjstateSet[jjnewStateCnt++] = 6;
+ else if (curChar == 45)
+ jjstateSet[jjnewStateCnt++] = 0;
+ if ((0x3fe000000000000L & l) != 0L)
+ {
+ if (kind > 19)
+ kind = 19;
+ jjCheckNAddTwoStates(14, 15);
+ }
+ else if (curChar == 48)
+ {
+ if (kind > 21)
+ kind = 21;
+ jjCheckNAddTwoStates(45, 47);
+ }
+ break;
+ case 0:
+ if (curChar == 45)
+ jjCheckNAddStates(10, 12);
+ break;
+ case 1:
+ if ((0xffffffffffffdbffL & l) != 0L)
+ jjCheckNAddStates(10, 12);
+ break;
+ case 2:
+ if ((0x2400L & l) != 0L && kind > 6)
+ kind = 6;
+ break;
+ case 3:
+ if (curChar == 10 && kind > 6)
+ kind = 6;
+ break;
+ case 4:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 3;
+ break;
+ case 6:
+ if (curChar == 42)
+ jjCheckNAddTwoStates(7, 8);
+ break;
+ case 7:
+ if ((0xfffffbffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(7, 8);
+ break;
+ case 8:
+ if (curChar == 42)
+ jjCheckNAddStates(13, 15);
+ break;
+ case 9:
+ if ((0xffff7bffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(10, 8);
+ break;
+ case 10:
+ if ((0xfffffbffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(10, 8);
+ break;
+ case 11:
+ if (curChar == 47 && kind > 7)
+ kind = 7;
+ break;
+ case 12:
+ if (curChar == 47)
+ jjstateSet[jjnewStateCnt++] = 6;
+ break;
+ case 13:
+ if ((0x3fe000000000000L & l) == 0L)
+ break;
+ if (kind > 19)
+ kind = 19;
+ jjCheckNAddTwoStates(14, 15);
+ break;
+ case 14:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 19)
+ kind = 19;
+ jjCheckNAddTwoStates(14, 15);
+ break;
+ case 16:
+ if (curChar == 46)
+ jjCheckNAdd(17);
+ break;
+ case 17:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAddTwoStates(17, 18);
+ break;
+ case 19:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(20);
+ break;
+ case 20:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAdd(20);
+ break;
+ case 21:
+ case 22:
+ if (curChar == 39)
+ jjCheckNAddStates(7, 9);
+ break;
+ case 23:
+ if (curChar == 39)
+ jjstateSet[jjnewStateCnt++] = 22;
+ break;
+ case 24:
+ if ((0xffffff7fffffffffL & l) != 0L)
+ jjCheckNAddStates(7, 9);
+ break;
+ case 25:
+ if (curChar == 39 && kind > 24)
+ kind = 24;
+ break;
+ case 26:
+ if (curChar != 36)
+ break;
+ if (kind > 25)
+ kind = 25;
+ jjCheckNAdd(27);
+ break;
+ case 27:
+ if ((0x3ff001000000000L & l) == 0L)
+ break;
+ if (kind > 25)
+ kind = 25;
+ jjCheckNAdd(27);
+ break;
+ case 28:
+ case 29:
+ if (curChar == 34)
+ jjCheckNAddStates(4, 6);
+ break;
+ case 30:
+ if (curChar == 34)
+ jjstateSet[jjnewStateCnt++] = 29;
+ break;
+ case 31:
+ if ((0xfffffffbffffffffL & l) != 0L)
+ jjCheckNAddStates(4, 6);
+ break;
+ case 32:
+ if (curChar == 34 && kind > 26)
+ kind = 26;
+ break;
+ case 33:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(0, 3);
+ break;
+ case 34:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(34, 35);
+ break;
+ case 35:
+ if (curChar != 46)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAddTwoStates(36, 37);
+ break;
+ case 36:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAddTwoStates(36, 37);
+ break;
+ case 38:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(39);
+ break;
+ case 39:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAdd(39);
+ break;
+ case 40:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(40, 41);
+ break;
+ case 42:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(43);
+ break;
+ case 43:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 22)
+ kind = 22;
+ jjCheckNAdd(43);
+ break;
+ case 44:
+ if (curChar != 48)
+ break;
+ if (kind > 21)
+ kind = 21;
+ jjCheckNAddTwoStates(45, 47);
+ break;
+ case 46:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 20)
+ kind = 20;
+ jjstateSet[jjnewStateCnt++] = 46;
+ break;
+ case 47:
+ if ((0xff000000000000L & l) == 0L)
+ break;
+ if (kind > 21)
+ kind = 21;
+ jjCheckNAdd(47);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else if (curChar < 128)
+ {
+ long l = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 5:
+ case 27:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 25)
+ kind = 25;
+ jjCheckNAdd(27);
+ break;
+ case 1:
+ jjAddStates(10, 12);
+ break;
+ case 7:
+ jjCheckNAddTwoStates(7, 8);
+ break;
+ case 9:
+ case 10:
+ jjCheckNAddTwoStates(10, 8);
+ break;
+ case 15:
+ if ((0x100000001000L & l) != 0L && kind > 19)
+ kind = 19;
+ break;
+ case 18:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(16, 17);
+ break;
+ case 24:
+ jjAddStates(7, 9);
+ break;
+ case 31:
+ jjAddStates(4, 6);
+ break;
+ case 37:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(18, 19);
+ break;
+ case 41:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(20, 21);
+ break;
+ case 45:
+ if ((0x100000001000000L & l) != 0L)
+ jjCheckNAdd(46);
+ break;
+ case 46:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 20)
+ kind = 20;
+ jjCheckNAdd(46);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else
+ {
+ int hiByte = (int)(curChar >> 8);
+ int i1 = hiByte >> 6;
+ long l1 = 1L << (hiByte & 077);
+ int i2 = (curChar & 0xff) >> 6;
+ long l2 = 1L << (curChar & 077);
+ do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 1:
+ if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+ jjAddStates(10, 12);
+ break;
+ case 7:
+ if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+ jjCheckNAddTwoStates(7, 8);
+ break;
+ case 9:
+ case 10:
+ if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+ jjCheckNAddTwoStates(10, 8);
+ break;
+ case 24:
+ if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+ jjAddStates(7, 9);
+ break;
+ case 31:
+ if (jjCanMove_0(hiByte, i1, i2, l1, l2))
+ jjAddStates(4, 6);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ if (kind != 0x7fffffff)
+ {
+ jjmatchedKind = kind;
+ jjmatchedPos = curPos;
+ kind = 0x7fffffff;
+ }
+ ++curPos;
+ if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt)))
+ break;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { break; }
+ }
+ if (jjmatchedPos > strPos)
+ return curPos;
+
+ int toRet = Math.max(curPos, seenUpto);
+
+ if (curPos < toRet)
+ for (i = toRet - Math.min(curPos, seenUpto); i-- > 0; )
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { throw new Error("Internal Error : Please send a bug report."); }
+
+ if (jjmatchedPos < strPos)
+ {
+ jjmatchedKind = strKind;
+ jjmatchedPos = strPos;
+ }
+ else if (jjmatchedPos == strPos && jjmatchedKind > strKind)
+ jjmatchedKind = strKind;
+
+ return toRet;
+}
+static final int[] jjnextStates = {
+ 34, 35, 40, 41, 30, 31, 32, 23, 24, 25, 1, 2, 4, 8, 9, 11,
+ 19, 20, 38, 39, 42, 43,
+};
+private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
+{
+ switch(hiByte)
+ {
+ case 0:
+ return ((jjbitVec2[i2] & l2) != 0L);
+ default :
+ if ((jjbitVec0[i1] & l1) != 0L)
+ return true;
+ return false;
+ }
+}
+
+/** Token literal values. */
+public static final String[] jjstrLiteralImages = {
+"", null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+"\75", "\74\76", "\76", "\76\75", "\74", "\74\75", "\50", "\54", "\51", "\53", "\55",
+"\52", "\57", "\45", };
+
+/** Lexer state names. */
+public static final String[] lexStateNames = {
+ "DEFAULT",
+};
+static final long[] jjtoToken = {
+ 0x1ffff7fff01L,
+};
+static final long[] jjtoSkip = {
+ 0xfeL,
+};
+static final long[] jjtoSpecial = {
+ 0x3eL,
+};
+protected SimpleCharStream input_stream;
+private final int[] jjrounds = new int[48];
+private final int[] jjstateSet = new int[96];
+protected char curChar;
+/** Constructor. */
+public SelectorParserTokenManager(SimpleCharStream stream){
+ if (SimpleCharStream.staticFlag)
+ throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
+ input_stream = stream;
+}
+
+/** Constructor. */
+public SelectorParserTokenManager(SimpleCharStream stream, int lexState){
+ this(stream);
+ SwitchTo(lexState);
+}
+
+/** Reinitialise parser. */
+public void ReInit(SimpleCharStream stream)
+{
+ jjmatchedPos = jjnewStateCnt = 0;
+ curLexState = defaultLexState;
+ input_stream = stream;
+ ReInitRounds();
+}
+private void ReInitRounds()
+{
+ int i;
+ jjround = 0x80000001;
+ for (i = 48; i-- > 0;)
+ jjrounds[i] = 0x80000000;
+}
+
+/** Reinitialise parser. */
+public void ReInit(SimpleCharStream stream, int lexState)
+{
+ ReInit(stream);
+ SwitchTo(lexState);
+}
+
+/** Switch to specified lex state. */
+public void SwitchTo(int lexState)
+{
+ if (lexState >= 1 || lexState < 0)
+ throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
+ else
+ curLexState = lexState;
+}
+
+protected Token jjFillToken()
+{
+ final Token t;
+ final String curTokenImage;
+ final int beginLine;
+ final int endLine;
+ final int beginColumn;
+ final int endColumn;
+ String im = jjstrLiteralImages[jjmatchedKind];
+ curTokenImage = (im == null) ? input_stream.GetImage() : im;
+ beginLine = input_stream.getBeginLine();
+ beginColumn = input_stream.getBeginColumn();
+ endLine = input_stream.getEndLine();
+ endColumn = input_stream.getEndColumn();
+ t = Token.newToken(jjmatchedKind, curTokenImage);
+
+ t.beginLine = beginLine;
+ t.endLine = endLine;
+ t.beginColumn = beginColumn;
+ t.endColumn = endColumn;
+
+ return t;
+}
+
+int curLexState = 0;
+int defaultLexState = 0;
+int jjnewStateCnt;
+int jjround;
+int jjmatchedPos;
+int jjmatchedKind;
+
+/** Get the next Token. */
+public Token getNextToken()
+{
+ Token specialToken = null;
+ Token matchedToken;
+ int curPos = 0;
+
+ EOFLoop :
+ for (;;)
+ {
+ try
+ {
+ curChar = input_stream.BeginToken();
+ }
+ catch(java.io.IOException e)
+ {
+ jjmatchedKind = 0;
+ matchedToken = jjFillToken();
+ matchedToken.specialToken = specialToken;
+ return matchedToken;
+ }
+
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_0();
+ if (jjmatchedKind != 0x7fffffff)
+ {
+ if (jjmatchedPos + 1 < curPos)
+ input_stream.backup(curPos - jjmatchedPos - 1);
+ if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ matchedToken = jjFillToken();
+ matchedToken.specialToken = specialToken;
+ return matchedToken;
+ }
+ else
+ {
+ if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ matchedToken = jjFillToken();
+ if (specialToken == null)
+ specialToken = matchedToken;
+ else
+ {
+ matchedToken.specialToken = specialToken;
+ specialToken = (specialToken.next = matchedToken);
+ }
+ }
+ continue EOFLoop;
+ }
+ }
+ int error_line = input_stream.getEndLine();
+ int error_column = input_stream.getEndColumn();
+ String error_after = null;
+ boolean EOFSeen = false;
+ try { input_stream.readChar(); input_stream.backup(1); }
+ catch (java.io.IOException e1) {
+ EOFSeen = true;
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ if (curChar == '\n' || curChar == '\r') {
+ error_line++;
+ error_column = 0;
+ }
+ else
+ error_column++;
+ }
+ if (!EOFSeen) {
+ input_stream.backup(1);
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ }
+ throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
+ }
+}
+
+private void jjCheckNAdd(int state)
+{
+ if (jjrounds[state] != jjround)
+ {
+ jjstateSet[jjnewStateCnt++] = state;
+ jjrounds[state] = jjround;
+ }
+}
+private void jjAddStates(int start, int end)
+{
+ do {
+ jjstateSet[jjnewStateCnt++] = jjnextStates[start];
+ } while (start++ != end);
+}
+private void jjCheckNAddTwoStates(int state1, int state2)
+{
+ jjCheckNAdd(state1);
+ jjCheckNAdd(state2);
+}
+
+private void jjCheckNAddStates(int start, int end)
+{
+ do {
+ jjCheckNAdd(jjnextStates[start]);
+ } while (start++ != end);
+}
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/SimpleCharStream.java b/java/common/src/main/java/org/apache/qpid/filter/selector/SimpleCharStream.java
new file mode 100644
index 0000000000..c492e5cc23
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/SimpleCharStream.java
@@ -0,0 +1,492 @@
+/* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 5.0 */
+/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+/**
+ * An implementation of interface CharStream, where the stream is assumed to
+ * contain only ASCII characters (without unicode processing).
+ */
+
+public class SimpleCharStream
+{
+/** Whether parser is static. */
+ public static final boolean staticFlag = false;
+ int bufsize;
+ int available;
+ int tokenBegin;
+/** Position in buffer. */
+ public int bufpos = -1;
+ protected int bufline[];
+ protected int bufcolumn[];
+
+ protected int column = 0;
+ protected int line = 1;
+
+ protected boolean prevCharIsCR = false;
+ protected boolean prevCharIsLF = false;
+
+ protected java.io.Reader inputStream;
+
+ protected char[] buffer;
+ protected int maxNextCharInd = 0;
+ protected int inBuf = 0;
+ protected int tabSize = 8;
+
+ protected void setTabSize(int i) { tabSize = i; }
+ protected int getTabSize(int i) { return tabSize; }
+
+
+ protected void ExpandBuff(boolean wrapAround)
+ {
+ char[] newbuffer = new char[bufsize + 2048];
+ int newbufline[] = new int[bufsize + 2048];
+ int newbufcolumn[] = new int[bufsize + 2048];
+
+ try
+ {
+ if (wrapAround)
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
+ System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
+ System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
+ System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos += (bufsize - tokenBegin));
+ }
+ else
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos -= tokenBegin);
+ }
+ }
+ catch (Throwable t)
+ {
+ throw new Error(t.getMessage());
+ }
+
+
+ bufsize += 2048;
+ available = bufsize;
+ tokenBegin = 0;
+ }
+
+ protected void FillBuff() throws java.io.IOException
+ {
+ if (maxNextCharInd == available)
+ {
+ if (available == bufsize)
+ {
+ if (tokenBegin > 2048)
+ {
+ bufpos = maxNextCharInd = 0;
+ available = tokenBegin;
+ }
+ else if (tokenBegin < 0)
+ bufpos = maxNextCharInd = 0;
+ else
+ ExpandBuff(false);
+ }
+ else if (available > tokenBegin)
+ available = bufsize;
+ else if ((tokenBegin - available) < 2048)
+ ExpandBuff(true);
+ else
+ available = tokenBegin;
+ }
+
+ int i;
+ try {
+ if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1)
+ {
+ inputStream.close();
+ throw new java.io.IOException();
+ }
+ else
+ maxNextCharInd += i;
+ return;
+ }
+ catch(java.io.IOException e) {
+ --bufpos;
+ backup(0);
+ if (tokenBegin == -1)
+ tokenBegin = bufpos;
+ throw e;
+ }
+ }
+
+/** Start. */
+ public char BeginToken() throws java.io.IOException
+ {
+ tokenBegin = -1;
+ char c = readChar();
+ tokenBegin = bufpos;
+
+ return c;
+ }
+
+ protected void UpdateLineColumn(char c)
+ {
+ column++;
+
+ if (prevCharIsLF)
+ {
+ prevCharIsLF = false;
+ line += (column = 1);
+ }
+ else if (prevCharIsCR)
+ {
+ prevCharIsCR = false;
+ if (c == '\n')
+ {
+ prevCharIsLF = true;
+ }
+ else
+ line += (column = 1);
+ }
+
+ switch (c)
+ {
+ case '\r' :
+ prevCharIsCR = true;
+ break;
+ case '\n' :
+ prevCharIsLF = true;
+ break;
+ case '\t' :
+ column--;
+ column += (tabSize - (column % tabSize));
+ break;
+ default :
+ break;
+ }
+
+ bufline[bufpos] = line;
+ bufcolumn[bufpos] = column;
+ }
+
+/** Read a character. */
+ public char readChar() throws java.io.IOException
+ {
+ if (inBuf > 0)
+ {
+ --inBuf;
+
+ if (++bufpos == bufsize)
+ bufpos = 0;
+
+ return buffer[bufpos];
+ }
+
+ if (++bufpos >= maxNextCharInd)
+ FillBuff();
+
+ char c = buffer[bufpos];
+
+ UpdateLineColumn(c);
+ return c;
+ }
+
+ @Deprecated
+ /**
+ * @deprecated
+ * @see #getEndColumn
+ */
+
+ public int getColumn() {
+ return bufcolumn[bufpos];
+ }
+
+ @Deprecated
+ /**
+ * @deprecated
+ * @see #getEndLine
+ */
+
+ public int getLine() {
+ return bufline[bufpos];
+ }
+
+ /** Get token end column number. */
+ public int getEndColumn() {
+ return bufcolumn[bufpos];
+ }
+
+ /** Get token end line number. */
+ public int getEndLine() {
+ return bufline[bufpos];
+ }
+
+ /** Get token beginning column number. */
+ public int getBeginColumn() {
+ return bufcolumn[tokenBegin];
+ }
+
+ /** Get token beginning line number. */
+ public int getBeginLine() {
+ return bufline[tokenBegin];
+ }
+
+/** Backup a number of characters. */
+ public void backup(int amount) {
+
+ inBuf += amount;
+ if ((bufpos -= amount) < 0)
+ bufpos += bufsize;
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.Reader dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.Reader dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.Reader dstream)
+ {
+ this(dstream, 1, 1, 4096);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.Reader dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ if (buffer == null || buffersize != buffer.length)
+ {
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+ prevCharIsLF = prevCharIsCR = false;
+ tokenBegin = inBuf = maxNextCharInd = 0;
+ bufpos = -1;
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.Reader dstream, int startline,
+ int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.Reader dstream)
+ {
+ ReInit(dstream, 1, 1, 4096);
+ }
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline,
+ int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException
+ {
+ this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ this(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline,
+ int startcolumn) throws java.io.UnsupportedEncodingException
+ {
+ this(dstream, encoding, startline, startcolumn, 4096);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException
+ {
+ this(dstream, encoding, 1, 1, 4096);
+ }
+
+ /** Constructor. */
+ public SimpleCharStream(java.io.InputStream dstream)
+ {
+ this(dstream, 1, 1, 4096);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream, String encoding, int startline,
+ int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException
+ {
+ ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException
+ {
+ ReInit(dstream, encoding, 1, 1, 4096);
+ }
+
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream)
+ {
+ ReInit(dstream, 1, 1, 4096);
+ }
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream, String encoding, int startline,
+ int startcolumn) throws java.io.UnsupportedEncodingException
+ {
+ ReInit(dstream, encoding, startline, startcolumn, 4096);
+ }
+ /** Reinitialise. */
+ public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+ /** Get token literal value. */
+ public String GetImage()
+ {
+ if (bufpos >= tokenBegin)
+ return new String(buffer, tokenBegin, bufpos - tokenBegin + 1);
+ else
+ return new String(buffer, tokenBegin, bufsize - tokenBegin) +
+ new String(buffer, 0, bufpos + 1);
+ }
+
+ /** Get the suffix. */
+ public char[] GetSuffix(int len)
+ {
+ char[] ret = new char[len];
+
+ if ((bufpos + 1) >= len)
+ System.arraycopy(buffer, bufpos - len + 1, ret, 0, len);
+ else
+ {
+ System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0,
+ len - bufpos - 1);
+ System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1);
+ }
+
+ return ret;
+ }
+
+ /** Reset buffer when finished. */
+ public void Done()
+ {
+ buffer = null;
+ bufline = null;
+ bufcolumn = null;
+ }
+
+ /**
+ * Method to adjust line and column numbers for the start of a token.
+ */
+ public void adjustBeginLineColumn(int newLine, int newCol)
+ {
+ int start = tokenBegin;
+ int len;
+
+ if (bufpos >= tokenBegin)
+ {
+ len = bufpos - tokenBegin + inBuf + 1;
+ }
+ else
+ {
+ len = bufsize - tokenBegin + bufpos + 1 + inBuf;
+ }
+
+ int i = 0, j = 0, k = 0;
+ int nextColDiff = 0, columnDiff = 0;
+
+ while (i < len && bufline[j = start % bufsize] == bufline[k = ++start % bufsize])
+ {
+ bufline[j] = newLine;
+ nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j];
+ bufcolumn[j] = newCol + columnDiff;
+ columnDiff = nextColDiff;
+ i++;
+ }
+
+ if (i < len)
+ {
+ bufline[j] = newLine++;
+ bufcolumn[j] = newCol + columnDiff;
+
+ while (i++ < len)
+ {
+ if (bufline[j = start % bufsize] != bufline[++start % bufsize])
+ bufline[j] = newLine++;
+ else
+ bufline[j] = newLine;
+ }
+ }
+
+ line = bufline[j];
+ column = bufcolumn[j];
+ }
+
+}
+/* JavaCC - OriginalChecksum=dcf3510e97e4ee9a841bdafac162a129 (do not edit this line) */
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/Token.java b/java/common/src/main/java/org/apache/qpid/filter/selector/Token.java
new file mode 100644
index 0000000000..aebd21dacc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/Token.java
@@ -0,0 +1,152 @@
+/* Generated By:JavaCC: Do not edit this line. Token.java Version 5.0 */
+/* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+/**
+ * Describes the input token stream.
+ */
+
+public class Token implements java.io.Serializable {
+
+ /**
+ * The version identifier for this Serializable class.
+ * Increment only if the <i>serialized</i> form of the
+ * class changes.
+ */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * An integer that describes the kind of this token. This numbering
+ * system is determined by JavaCCParser, and a table of these numbers is
+ * stored in the file ...Constants.java.
+ */
+ public int kind;
+
+ /** The line number of the first character of this Token. */
+ public int beginLine;
+ /** The column number of the first character of this Token. */
+ public int beginColumn;
+ /** The line number of the last character of this Token. */
+ public int endLine;
+ /** The column number of the last character of this Token. */
+ public int endColumn;
+
+ /**
+ * The string image of the token.
+ */
+ public String image;
+
+ /**
+ * A reference to the next regular (non-special) token from the input
+ * stream. If this is the last token from the input stream, or if the
+ * token manager has not read tokens beyond this one, this field is
+ * set to null. This is true only if this token is also a regular
+ * token. Otherwise, see below for a description of the contents of
+ * this field.
+ */
+ public Token next;
+
+ /**
+ * This field is used to access special tokens that occur prior to this
+ * token, but after the immediately preceding regular (non-special) token.
+ * If there are no such special tokens, this field is set to null.
+ * When there are more than one such special token, this field refers
+ * to the last of these special tokens, which in turn refers to the next
+ * previous special token through its specialToken field, and so on
+ * until the first special token (whose specialToken field is null).
+ * The next fields of special tokens refer to other special tokens that
+ * immediately follow it (without an intervening regular token). If there
+ * is no such token, this field is null.
+ */
+ public Token specialToken;
+
+ /**
+ * An optional attribute value of the Token.
+ * Tokens which are not used as syntactic sugar will often contain
+ * meaningful values that will be used later on by the compiler or
+ * interpreter. This attribute value is often different from the image.
+ * Any subclass of Token that actually wants to return a non-null value can
+ * override this method as appropriate.
+ */
+ public Object getValue() {
+ return null;
+ }
+
+ /**
+ * No-argument constructor
+ */
+ public Token() {}
+
+ /**
+ * Constructs a new token for the specified Image.
+ */
+ public Token(int kind)
+ {
+ this(kind, null);
+ }
+
+ /**
+ * Constructs a new token for the specified Image and Kind.
+ */
+ public Token(int kind, String image)
+ {
+ this.kind = kind;
+ this.image = image;
+ }
+
+ /**
+ * Returns the image.
+ */
+ public String toString()
+ {
+ return image;
+ }
+
+ /**
+ * Returns a new Token object, by default. However, if you want, you
+ * can create and return subclass objects based on the value of ofKind.
+ * Simply add the cases to the switch for all those special cases.
+ * For example, if you have a subclass of Token called IDToken that
+ * you want to create if ofKind is ID, simply add something like :
+ *
+ * case MyParserConstants.ID : return new IDToken(ofKind, image);
+ *
+ * to the following switch statement. Then you can cast matchedToken
+ * variable to the appropriate type and use sit in your lexical actions.
+ */
+ public static Token newToken(int ofKind, String image)
+ {
+ switch(ofKind)
+ {
+ default : return new Token(ofKind, image);
+ }
+ }
+
+ public static Token newToken(int ofKind)
+ {
+ return newToken(ofKind, null);
+ }
+
+}
+/* JavaCC - OriginalChecksum=dfd1857bf2f000661cadfe9ef672245e (do not edit this line) */
diff --git a/java/common/src/main/java/org/apache/qpid/filter/selector/TokenMgrError.java b/java/common/src/main/java/org/apache/qpid/filter/selector/TokenMgrError.java
new file mode 100644
index 0000000000..835339dc53
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/filter/selector/TokenMgrError.java
@@ -0,0 +1,168 @@
+/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 5.0 */
+/* JavaCCOptions: */
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+package org.apache.qpid.filter.selector;
+
+/** Token Manager Error. */
+public class TokenMgrError extends Error
+{
+
+ /**
+ * The version identifier for this Serializable class.
+ * Increment only if the <i>serialized</i> form of the
+ * class changes.
+ */
+ private static final long serialVersionUID = 1L;
+
+ /*
+ * Ordinals for various reasons why an Error of this type can be thrown.
+ */
+
+ /**
+ * Lexical error occurred.
+ */
+ static final int LEXICAL_ERROR = 0;
+
+ /**
+ * An attempt was made to create a second instance of a static token manager.
+ */
+ static final int STATIC_LEXER_ERROR = 1;
+
+ /**
+ * Tried to change to an invalid lexical state.
+ */
+ static final int INVALID_LEXICAL_STATE = 2;
+
+ /**
+ * Detected (and bailed out of) an infinite loop in the token manager.
+ */
+ static final int LOOP_DETECTED = 3;
+
+ /**
+ * Indicates the reason why the exception is thrown. It will have
+ * one of the above 4 values.
+ */
+ int errorCode;
+
+ /**
+ * Replaces unprintable characters by their escaped (or unicode escaped)
+ * equivalents in the given string
+ */
+ protected static final String addEscapes(String str) {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+ for (int i = 0; i < str.length(); i++) {
+ switch (str.charAt(i))
+ {
+ case 0 :
+ continue;
+ case '\b':
+ retval.append("\\b");
+ continue;
+ case '\t':
+ retval.append("\\t");
+ continue;
+ case '\n':
+ retval.append("\\n");
+ continue;
+ case '\f':
+ retval.append("\\f");
+ continue;
+ case '\r':
+ retval.append("\\r");
+ continue;
+ case '\"':
+ retval.append("\\\"");
+ continue;
+ case '\'':
+ retval.append("\\\'");
+ continue;
+ case '\\':
+ retval.append("\\\\");
+ continue;
+ default:
+ if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ } else {
+ retval.append(ch);
+ }
+ continue;
+ }
+ }
+ return retval.toString();
+ }
+
+ /**
+ * Returns a detailed message for the Error when it is thrown by the
+ * token manager to indicate a lexical error.
+ * Parameters :
+ * EOFSeen : indicates if EOF caused the lexical error
+ * curLexState : lexical state in which this error occurred
+ * errorLine : line number when the error occurred
+ * errorColumn : column number when the error occurred
+ * errorAfter : prefix that was seen before this error occurred
+ * curchar : the offending character
+ * Note: You can customize the lexical error message by modifying this method.
+ */
+ protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
+ return("Lexical error at line " +
+ errorLine + ", column " +
+ errorColumn + ". Encountered: " +
+ (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") +
+ "after : \"" + addEscapes(errorAfter) + "\"");
+ }
+
+ /**
+ * You can also modify the body of this method to customize your error messages.
+ * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
+ * of end-users concern, so you can return something like :
+ *
+ * "Internal Error : Please file a bug report .... "
+ *
+ * from this method for such cases in the release version of your parser.
+ */
+ public String getMessage() {
+ return super.getMessage();
+ }
+
+ /*
+ * Constructors of various flavors follow.
+ */
+
+ /** No arg constructor. */
+ public TokenMgrError() {
+ }
+
+ /** Constructor with message and reason. */
+ public TokenMgrError(String message, int reason) {
+ super(message);
+ errorCode = reason;
+ }
+
+ /** Full Constructor. */
+ public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {
+ this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
+ }
+}
+/* JavaCC - OriginalChecksum=795daaee93a15e0081e60f73df35399f (do not edit this line) */
diff --git a/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
new file mode 100644
index 0000000000..38701385d6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface AccessRequestBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getActive();
+
+ public boolean getExclusive();
+
+ public boolean getPassive();
+
+ public boolean getRead();
+
+ public AMQShortString getRealm();
+
+ public boolean getWrite();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/AccessRequestOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestOkBody.java
new file mode 100644
index 0000000000..aa7c171411
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface AccessRequestOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicAckBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicAckBody.java
new file mode 100644
index 0000000000..41c4af5ff0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicAckBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicAckBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getDeliveryTag();
+
+ public boolean getMultiple();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicCancelBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicCancelBody.java
new file mode 100644
index 0000000000..853b1583b9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicCancelBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicCancelBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getNowait();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicCancelOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicCancelOkBody.java
new file mode 100644
index 0000000000..623e89275a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicCancelOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicCancelOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeBody.java
new file mode 100644
index 0000000000..d263899082
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeBody.java
@@ -0,0 +1,50 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicConsumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getArguments();
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getExclusive();
+
+ public boolean getNoAck();
+
+ public boolean getNoLocal();
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeOkBody.java
new file mode 100644
index 0000000000..a73cb9605d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicConsumeOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicConsumeOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicDeliverBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicDeliverBody.java
new file mode 100644
index 0000000000..07781c0026
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicDeliverBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicDeliverBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public long getDeliveryTag();
+
+ public AMQShortString getExchange();
+
+ public boolean getRedelivered();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicGetBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicGetBody.java
new file mode 100644
index 0000000000..b2a27cf840
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicGetBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicGetBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getNoAck();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicGetEmptyBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicGetEmptyBody.java
new file mode 100644
index 0000000000..758d15ba37
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicGetEmptyBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicGetEmptyBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getClusterId();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicGetOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicGetOkBody.java
new file mode 100644
index 0000000000..fac54d975c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicGetOkBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicGetOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getDeliveryTag();
+
+ public AMQShortString getExchange();
+
+ public long getMessageCount();
+
+ public boolean getRedelivered();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicPublishBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicPublishBody.java
new file mode 100644
index 0000000000..f71e012cd8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicPublishBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicPublishBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public boolean getImmediate();
+
+ public boolean getMandatory();
+
+ public AMQShortString getRoutingKey();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicQosBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicQosBody.java
new file mode 100644
index 0000000000..909a5dae8b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicQosBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicQosBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getGlobal();
+
+ public int getPrefetchCount();
+
+ public long getPrefetchSize();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicQosOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicQosOkBody.java
new file mode 100644
index 0000000000..b37cd30e73
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicQosOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicQosOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java
new file mode 100644
index 0000000000..57e5637222
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicRecoverBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getRequeue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverOkBody.java
new file mode 100644
index 0000000000..a4abdd0cd7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicRecoverOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncBody.java
new file mode 100644
index 0000000000..9175da5796
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicRecoverSyncBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getRequeue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncOkBody.java
new file mode 100644
index 0000000000..c34aeda625
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRecoverSyncOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicRecoverSyncOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicRejectBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicRejectBody.java
new file mode 100644
index 0000000000..87cd1083fb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicRejectBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicRejectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getDeliveryTag();
+
+ public boolean getRequeue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/BasicReturnBody.java b/java/common/src/main/java/org/apache/qpid/framing/BasicReturnBody.java
new file mode 100644
index 0000000000..ace37b61fa
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/BasicReturnBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface BasicReturnBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
new file mode 100644
index 0000000000..5c2354551a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelAlertBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelAlertBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getDetails();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseBody.java
new file mode 100644
index 0000000000..d791b9125e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelCloseBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getClassId();
+
+ public int getMethodId();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseOkBody.java
new file mode 100644
index 0000000000..4d9b8b4c3a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelCloseOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelCloseOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowBody.java
new file mode 100644
index 0000000000..08a75df9a5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelFlowBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getActive();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowOkBody.java
new file mode 100644
index 0000000000..750156ea9c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelFlowOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelFlowOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getActive();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelOkBody.java
new file mode 100644
index 0000000000..4f332aea8f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenBody.java
new file mode 100644
index 0000000000..0333cdae9f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelOpenBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getOutOfBand();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenOkBody.java
new file mode 100644
index 0000000000..7682cea782
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelOpenOkBody.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelOpenOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelPingBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelPingBody.java
new file mode 100644
index 0000000000..29f2013e79
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelPingBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelPingBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelPongBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelPongBody.java
new file mode 100644
index 0000000000..2ac2388246
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelPongBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelPongBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ChannelResumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/ChannelResumeBody.java
new file mode 100644
index 0000000000..f3b77e1db9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ChannelResumeBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ChannelResumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getChannelId();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ClientMethodDispatcher.java b/java/common/src/main/java/org/apache/qpid/framing/ClientMethodDispatcher.java
new file mode 100644
index 0000000000..0b31d99463
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ClientMethodDispatcher.java
@@ -0,0 +1,66 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+import org.apache.qpid.AMQException;
+
+public interface ClientMethodDispatcher
+{
+
+ public boolean dispatchBasicCancelOk(BasicCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsumeOk(BasicConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicDeliver(BasicDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetEmpty(BasicGetEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetOk(BasicGetOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQosOk(BasicQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReturn(BasicReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpenOk(ChannelOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpenOk(ConnectionOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecure(ConnectionSecureBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStart(ConnectionStartBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTune(ConnectionTuneBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBoundOk(ExchangeBoundOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclareOk(ExchangeDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeleteOk(ExchangeDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBindOk(QueueBindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclareOk(QueueDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeleteOk(QueueDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurgeOk(QueuePurgeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommitOk(TxCommitOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollbackOk(TxRollbackOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelectOk(TxSelectOkBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseBody.java
new file mode 100644
index 0000000000..d03892d29f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionCloseBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getClassId();
+
+ public int getMethodId();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseOkBody.java
new file mode 100644
index 0000000000..f849095877
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionCloseOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionCloseOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenBody.java
new file mode 100644
index 0000000000..cfa52b5f44
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionOpenBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getCapabilities();
+
+ public boolean getInsist();
+
+ public AMQShortString getVirtualHost();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenOkBody.java
new file mode 100644
index 0000000000..eb2122fd74
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionOpenOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionOpenOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getKnownHosts();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionRedirectBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionRedirectBody.java
new file mode 100644
index 0000000000..df200e8572
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionRedirectBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionRedirectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getHost();
+
+ public AMQShortString getKnownHosts();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureBody.java
new file mode 100644
index 0000000000..ebcdc2cf4d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionSecureBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getChallenge();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureOkBody.java
new file mode 100644
index 0000000000..7abbe9d18c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionSecureOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionSecureOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getResponse();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartBody.java
new file mode 100644
index 0000000000..3219a9f392
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionStartBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getLocales();
+
+ public byte[] getMechanisms();
+
+ public FieldTable getServerProperties();
+
+ public short getVersionMajor();
+
+ public short getVersionMinor();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartOkBody.java
new file mode 100644
index 0000000000..bd45ce0fa0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionStartOkBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionStartOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getClientProperties();
+
+ public AMQShortString getLocale();
+
+ public AMQShortString getMechanism();
+
+ public byte[] getResponse();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneBody.java
new file mode 100644
index 0000000000..82a1b2f04b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionTuneBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getChannelMax();
+
+ public long getFrameMax();
+
+ public int getHeartbeat();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneOkBody.java
new file mode 100644
index 0000000000..15cdd44c08
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ConnectionTuneOkBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ConnectionTuneOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getChannelMax();
+
+ public long getFrameMax();
+
+ public int getHeartbeat();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/DtxSelectBody.java b/java/common/src/main/java/org/apache/qpid/framing/DtxSelectBody.java
new file mode 100644
index 0000000000..d6d7c87e23
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/DtxSelectBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface DtxSelectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/DtxSelectOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/DtxSelectOkBody.java
new file mode 100644
index 0000000000..9ea4585b35
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/DtxSelectOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface DtxSelectOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/DtxStartBody.java b/java/common/src/main/java/org/apache/qpid/framing/DtxStartBody.java
new file mode 100644
index 0000000000..e721bfcdd1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/DtxStartBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface DtxStartBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getDtxIdentifier();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/DtxStartOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/DtxStartOkBody.java
new file mode 100644
index 0000000000..c16e9d7447
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/DtxStartOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface DtxStartOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundBody.java
new file mode 100644
index 0000000000..fa1fb441a8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeBoundBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public AMQShortString getQueue();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundOkBody.java
new file mode 100644
index 0000000000..7a60e4dc21
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeBoundOkBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeBoundOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareBody.java
new file mode 100644
index 0000000000..8ffb998e47
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareBody.java
@@ -0,0 +1,52 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeDeclareBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getArguments();
+
+ public boolean getAutoDelete();
+
+ public boolean getDurable();
+
+ public AMQShortString getExchange();
+
+ public boolean getInternal();
+
+ public boolean getNowait();
+
+ public boolean getPassive();
+
+ public int getTicket();
+
+ public AMQShortString getType();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareOkBody.java
new file mode 100644
index 0000000000..848963ce1b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeclareOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeDeclareOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteBody.java
new file mode 100644
index 0000000000..5ce3a7415f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeDeleteBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public boolean getIfUnused();
+
+ public boolean getNowait();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteOkBody.java
new file mode 100644
index 0000000000..54ce0940d5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ExchangeDeleteOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface ExchangeDeleteOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileAckBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileAckBody.java
new file mode 100644
index 0000000000..9d5f186521
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileAckBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileAckBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getDeliveryTag();
+
+ public boolean getMultiple();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileCancelBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileCancelBody.java
new file mode 100644
index 0000000000..ac85455ff5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileCancelBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileCancelBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getNowait();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileCancelOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileCancelOkBody.java
new file mode 100644
index 0000000000..40364887c8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileCancelOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileCancelOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileConsumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileConsumeBody.java
new file mode 100644
index 0000000000..632bc1cf85
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileConsumeBody.java
@@ -0,0 +1,49 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileConsumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getExclusive();
+
+
+ public boolean getNoAck();
+
+ public boolean getNoLocal();
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileConsumeOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileConsumeOkBody.java
new file mode 100644
index 0000000000..dd6dd3f64b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileConsumeOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileConsumeOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileDeliverBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileDeliverBody.java
new file mode 100644
index 0000000000..3b8fa3fe79
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileDeliverBody.java
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileDeliverBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public long getDeliveryTag();
+
+ public AMQShortString getExchange();
+
+ public AMQShortString getIdentifier();
+
+ public boolean getRedelivered();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileOpenBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileOpenBody.java
new file mode 100644
index 0000000000..25ea3834bc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileOpenBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileOpenBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getContentSize();
+
+ public AMQShortString getIdentifier();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileOpenOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileOpenOkBody.java
new file mode 100644
index 0000000000..4edff34eb4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileOpenOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileOpenOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getStagedSize();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FilePublishBody.java b/java/common/src/main/java/org/apache/qpid/framing/FilePublishBody.java
new file mode 100644
index 0000000000..5377882c27
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FilePublishBody.java
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FilePublishBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public AMQShortString getIdentifier();
+
+ public boolean getImmediate();
+
+ public boolean getMandatory();
+
+ public AMQShortString getRoutingKey();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileQosBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileQosBody.java
new file mode 100644
index 0000000000..378b6a3b5d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileQosBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileQosBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getGlobal();
+
+ public int getPrefetchCount();
+
+ public long getPrefetchSize();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileQosOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileQosOkBody.java
new file mode 100644
index 0000000000..7296b36cc2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileQosOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileQosOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileRejectBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileRejectBody.java
new file mode 100644
index 0000000000..c569d8ed9f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileRejectBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileRejectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getDeliveryTag();
+
+ public boolean getRequeue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileReturnBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileReturnBody.java
new file mode 100644
index 0000000000..8bd5825141
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileReturnBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileReturnBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/FileStageBody.java b/java/common/src/main/java/org/apache/qpid/framing/FileStageBody.java
new file mode 100644
index 0000000000..976fa3b0da
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/FileStageBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface FileStageBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageAppendBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageAppendBody.java
new file mode 100644
index 0000000000..c981ad00f8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageAppendBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageAppendBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getBytes();
+
+ public byte[] getReference();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageCancelBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageCancelBody.java
new file mode 100644
index 0000000000..e440aca42f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageCancelBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageCancelBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getDestination();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageCheckpointBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageCheckpointBody.java
new file mode 100644
index 0000000000..1cc6dc598b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageCheckpointBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageCheckpointBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getIdentifier();
+
+ public byte[] getReference();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageCloseBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageCloseBody.java
new file mode 100644
index 0000000000..6898edec00
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageCloseBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageCloseBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getReference();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageConsumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageConsumeBody.java
new file mode 100644
index 0000000000..13fe4aec2b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageConsumeBody.java
@@ -0,0 +1,48 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageConsumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getDestination();
+
+ public boolean getExclusive();
+
+ public FieldTable getFilter();
+
+ public boolean getNoAck();
+
+ public boolean getNoLocal();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageEmptyBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageEmptyBody.java
new file mode 100644
index 0000000000..d4f1c6e02a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageEmptyBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageEmptyBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageGetBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageGetBody.java
new file mode 100644
index 0000000000..c2641679a8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageGetBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageGetBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getDestination();
+
+ public boolean getNoAck();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageOffsetBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageOffsetBody.java
new file mode 100644
index 0000000000..3b7d94ae2e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageOffsetBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageOffsetBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getValue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageOkBody.java
new file mode 100644
index 0000000000..c349acd2bb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageOpenBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageOpenBody.java
new file mode 100644
index 0000000000..da021bd42c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageOpenBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageOpenBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getReference();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageQosBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageQosBody.java
new file mode 100644
index 0000000000..ecedcebcee
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageQosBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageQosBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getGlobal();
+
+ public int getPrefetchCount();
+
+ public long getPrefetchSize();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageRecoverBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageRecoverBody.java
new file mode 100644
index 0000000000..37188d5dc9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageRecoverBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageRecoverBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getRequeue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageRejectBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageRejectBody.java
new file mode 100644
index 0000000000..3bd858c20d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageRejectBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageRejectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public int getCode();
+
+ public AMQShortString getText();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageResumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageResumeBody.java
new file mode 100644
index 0000000000..ef68b97c19
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageResumeBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageResumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getIdentifier();
+
+ public byte[] getReference();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MessageTransferBody.java b/java/common/src/main/java/org/apache/qpid/framing/MessageTransferBody.java
new file mode 100644
index 0000000000..11f8848431
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MessageTransferBody.java
@@ -0,0 +1,78 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MessageTransferBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getAppId();
+
+ public FieldTable getApplicationHeaders();
+
+ public Content getBody();
+
+ public AMQShortString getContentEncoding();
+
+ public AMQShortString getContentType();
+
+ public AMQShortString getCorrelationId();
+
+ public short getDeliveryMode();
+
+ public AMQShortString getDestination();
+
+ public AMQShortString getExchange();
+
+ public long getExpiration();
+
+ public boolean getImmediate();
+
+ public AMQShortString getMessageId();
+
+ public short getPriority();
+
+ public boolean getRedelivered();
+
+ public AMQShortString getReplyTo();
+
+ public AMQShortString getRoutingKey();
+
+ public byte[] getSecurityToken();
+
+ public int getTicket();
+
+ public long getTimestamp();
+
+ public AMQShortString getTransactionId();
+
+ public long getTtl();
+
+ public AMQShortString getUserId();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MethodDispatcher.java b/java/common/src/main/java/org/apache/qpid/framing/MethodDispatcher.java
new file mode 100644
index 0000000000..03b122a7a7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MethodDispatcher.java
@@ -0,0 +1,35 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface MethodDispatcher extends
+ ClientMethodDispatcher, ServerMethodDispatcher
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/MethodRegistry.java b/java/common/src/main/java/org/apache/qpid/framing/MethodRegistry.java
new file mode 100644
index 0000000000..84274ba3a6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/MethodRegistry.java
@@ -0,0 +1,358 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+import java.io.IOException;
+
+import org.apache.qpid.framing.abstraction.ProtocolVersionMethodConverter;
+import org.apache.qpid.codec.MarkableDataInput;
+
+import java.util.Map;
+import java.util.HashMap;
+
+
+public abstract class MethodRegistry
+{
+ private static final Map<ProtocolVersion, MethodRegistry> _registries =
+ new HashMap<ProtocolVersion, MethodRegistry>();
+
+
+ public static final MethodRegistry registry_0_9 =
+ new org.apache.qpid.framing.amqp_0_9.MethodRegistry_0_9();
+
+ public static final MethodRegistry registry_0_91 =
+ new org.apache.qpid.framing.amqp_0_91.MethodRegistry_0_91();
+
+ public static final MethodRegistry registry_8_0 =
+ new org.apache.qpid.framing.amqp_8_0.MethodRegistry_8_0();
+
+ public abstract AMQMethodBody convertToBody(MarkableDataInput in, long size)
+ throws AMQFrameDecodingException, IOException;
+
+ public abstract int getMaxClassId();
+
+ public abstract int getMaxMethodId(int classId);
+
+ protected MethodRegistry(ProtocolVersion pv)
+ {
+ _registries.put(pv, this);
+ }
+
+ public static MethodRegistry getMethodRegistry(ProtocolVersion pv)
+ {
+ return _registries.get(pv);
+ }
+
+
+
+
+ public abstract BasicAckBody createBasicAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ );
+
+ public abstract BasicCancelBody createBasicCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ );
+
+ public abstract BasicCancelOkBody createBasicCancelOkBody(
+ final AMQShortString consumerTag
+ );
+
+ public abstract BasicConsumeBody createBasicConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable arguments
+ );
+
+ public abstract BasicConsumeOkBody createBasicConsumeOkBody(
+ final AMQShortString consumerTag
+ );
+
+ public abstract BasicDeliverBody createBasicDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ );
+
+ public abstract BasicGetBody createBasicGetBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean noAck
+ );
+
+ public abstract BasicGetEmptyBody createBasicGetEmptyBody(
+ final AMQShortString clusterId
+ );
+
+ public abstract BasicGetOkBody createBasicGetOkBody(
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final long messageCount
+ );
+
+ public abstract BasicPublishBody createBasicPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ );
+
+ public abstract BasicQosBody createBasicQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ );
+
+ public abstract BasicQosOkBody createBasicQosOkBody(
+ );
+
+ public abstract BasicRecoverBody createBasicRecoverBody(
+ final boolean requeue
+ );
+
+ public abstract BasicRejectBody createBasicRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ );
+
+ public abstract BasicReturnBody createBasicReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ );
+
+
+ public abstract ChannelCloseBody createChannelCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ );
+
+ public abstract ChannelCloseOkBody createChannelCloseOkBody(
+ );
+
+ public abstract ChannelFlowBody createChannelFlowBody(
+ final boolean active
+ );
+
+ public abstract ChannelFlowOkBody createChannelFlowOkBody(
+ final boolean active
+ );
+
+ public abstract ChannelOpenBody createChannelOpenBody(
+ final AMQShortString outOfBand
+ );
+
+
+ public abstract ConnectionCloseBody createConnectionCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ );
+
+ public abstract ConnectionCloseOkBody createConnectionCloseOkBody(
+ );
+
+ public abstract ConnectionOpenBody createConnectionOpenBody(
+ final AMQShortString virtualHost,
+ final AMQShortString capabilities,
+ final boolean insist
+ );
+
+ public abstract ConnectionOpenOkBody createConnectionOpenOkBody(
+ final AMQShortString knownHosts
+ );
+
+ public abstract ConnectionSecureBody createConnectionSecureBody(
+ final byte[] challenge
+ );
+
+ public abstract ConnectionSecureOkBody createConnectionSecureOkBody(
+ final byte[] response
+ );
+
+ public abstract ConnectionStartBody createConnectionStartBody(
+ final short versionMajor,
+ final short versionMinor,
+ final FieldTable serverProperties,
+ final byte[] mechanisms,
+ final byte[] locales
+ );
+
+ public abstract ConnectionStartOkBody createConnectionStartOkBody(
+ final FieldTable clientProperties,
+ final AMQShortString mechanism,
+ final byte[] response,
+ final AMQShortString locale
+ );
+
+ public abstract ConnectionTuneBody createConnectionTuneBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ );
+
+ public abstract ConnectionTuneOkBody createConnectionTuneOkBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ );
+
+
+
+ public abstract ExchangeBoundBody createExchangeBoundBody(
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString queue
+ );
+
+ public abstract ExchangeBoundOkBody createExchangeBoundOkBody(
+ final int replyCode,
+ final AMQShortString replyText
+ );
+
+ public abstract ExchangeDeclareBody createExchangeDeclareBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString type,
+ final boolean passive,
+ final boolean durable,
+ final boolean autoDelete,
+ final boolean internal,
+ final boolean nowait,
+ final FieldTable arguments
+ );
+
+ public abstract ExchangeDeclareOkBody createExchangeDeclareOkBody(
+ );
+
+ public abstract ExchangeDeleteBody createExchangeDeleteBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final boolean ifUnused,
+ final boolean nowait
+ );
+
+ public abstract ExchangeDeleteOkBody createExchangeDeleteOkBody(
+ );
+
+
+
+
+ public abstract QueueBindBody createQueueBindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean nowait,
+ final FieldTable arguments
+ );
+
+ public abstract QueueBindOkBody createQueueBindOkBody(
+ );
+
+ public abstract QueueDeclareBody createQueueDeclareBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean passive,
+ final boolean durable,
+ final boolean exclusive,
+ final boolean autoDelete,
+ final boolean nowait,
+ final FieldTable arguments
+ );
+
+ public abstract QueueDeclareOkBody createQueueDeclareOkBody(
+ final AMQShortString queue,
+ final long messageCount,
+ final long consumerCount
+ );
+
+ public abstract QueueDeleteBody createQueueDeleteBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean ifUnused,
+ final boolean ifEmpty,
+ final boolean nowait
+ );
+
+ public abstract QueueDeleteOkBody createQueueDeleteOkBody(
+ final long messageCount
+ );
+
+ public abstract QueuePurgeBody createQueuePurgeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean nowait
+ );
+
+ public abstract QueuePurgeOkBody createQueuePurgeOkBody(
+ final long messageCount
+ );
+
+
+
+
+
+ public abstract TxCommitBody createTxCommitBody(
+ );
+
+ public abstract TxCommitOkBody createTxCommitOkBody(
+ );
+
+ public abstract TxRollbackBody createTxRollbackBody(
+ );
+
+ public abstract TxRollbackOkBody createTxRollbackOkBody(
+ );
+
+ public abstract TxSelectBody createTxSelectBody(
+ );
+
+ public abstract TxSelectOkBody createTxSelectOkBody(
+ );
+
+ public abstract ProtocolVersionMethodConverter getProtocolVersionMethodConverter();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ProtocolVersion.java b/java/common/src/main/java/org/apache/qpid/framing/ProtocolVersion.java
new file mode 100644
index 0000000000..33c613ec94
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ProtocolVersion.java
@@ -0,0 +1,188 @@
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+/*
+* This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+* Supported AMQP versions:
+* 0-9
+* 0-91
+* 8-0
+*/
+
+package org.apache.qpid.framing;
+
+import java.util.SortedSet;
+import java.util.Collections;
+import java.util.TreeSet;
+import java.util.Map;
+import java.util.HashMap;
+
+public class ProtocolVersion implements Comparable
+{
+ private final byte _majorVersion;
+ private final byte _minorVersion;
+ private final String _stringFormat;
+
+ public ProtocolVersion(byte majorVersion, byte minorVersion)
+ {
+ _majorVersion = majorVersion;
+ _minorVersion = minorVersion;
+ _stringFormat = _majorVersion+"-"+_minorVersion;
+ }
+
+ public byte getMajorVersion()
+ {
+ return _majorVersion;
+ }
+
+ public byte getMinorVersion()
+ {
+ return _minorVersion;
+ }
+
+ public byte getActualMinorVersion()
+ {
+ return _minorVersion > 90 ? (byte) (_minorVersion / 10) : _minorVersion;
+ }
+
+ public byte getRevisionVersion()
+ {
+ return _minorVersion > 90 ? (byte) (_minorVersion % 10) : (byte) 0;
+ }
+
+ public String toString()
+ {
+ return _stringFormat;
+ }
+
+ public int compareTo(Object o)
+ {
+ ProtocolVersion pv = (ProtocolVersion) o;
+
+ /*
+ * 0-8 has it's major and minor numbers the wrong way round (it's actually 8-0)...
+ * so we need to deal with that case specially
+ */
+
+ if((_majorVersion == (byte) 8) && (_minorVersion == (byte) 0))
+ {
+ ProtocolVersion fixedThis = new ProtocolVersion(_minorVersion, _majorVersion);
+ return fixedThis.compareTo(pv);
+ }
+
+ if((pv.getMajorVersion() == (byte) 8) && (pv.getMinorVersion() == (byte) 0))
+ {
+ ProtocolVersion fixedOther = new ProtocolVersion(pv.getMinorVersion(), pv.getMajorVersion());
+ return this.compareTo(fixedOther);
+ }
+
+ if(_majorVersion > pv.getMajorVersion())
+ {
+ return 1;
+ }
+ else if(_majorVersion < pv.getMajorVersion())
+ {
+ return -1;
+ }
+ else if(_minorVersion > pv.getMinorVersion())
+ {
+ return 1;
+ }
+ else if(getMinorVersion() < pv.getMinorVersion())
+ {
+ return -1;
+ }
+ else
+ {
+ return 0;
+ }
+
+ }
+
+ public boolean equals(Object o)
+ {
+ return o != null && (o == this || (compareTo(o) == 0));
+ }
+
+ public int hashCode()
+ {
+ return (0xFF & (int)_minorVersion) | ((0xFF & (int)_majorVersion) << 8);
+ }
+
+ public boolean isSupported()
+ {
+ return _supportedVersions.contains(this);
+ }
+
+ public static ProtocolVersion getLatestSupportedVersion()
+ {
+ return _supportedVersions.last();
+ }
+
+ private static final SortedSet<ProtocolVersion> _supportedVersions;
+ private static final Map<String, ProtocolVersion> _nameToVersionMap =
+ new HashMap<String, ProtocolVersion>();
+ private static final ProtocolVersion _defaultVersion;
+
+ public static final ProtocolVersion v0_10 = new ProtocolVersion((byte)0,(byte)10);
+
+ public static final ProtocolVersion v0_9 = new ProtocolVersion((byte)0,(byte)9);
+ public static final ProtocolVersion v0_91 = new ProtocolVersion((byte)0,(byte)91);
+ public static final ProtocolVersion v8_0 = new ProtocolVersion((byte)8,(byte)0);
+
+ static
+ {
+ SortedSet<ProtocolVersion> versions = new TreeSet<ProtocolVersion>();
+
+ versions.add(v0_10);
+ _nameToVersionMap.put("0-10", v0_10);
+ versions.add(v0_9);
+ _nameToVersionMap.put("0-9", v0_9);
+ versions.add(v0_91);
+ _nameToVersionMap.put("0-91", v0_91);
+ versions.add(v8_0);
+ _nameToVersionMap.put("8-0", v8_0);
+ _supportedVersions = Collections.unmodifiableSortedSet(versions);
+
+ ProtocolVersion systemDefinedVersion =
+ _nameToVersionMap.get(System.getProperty("org.apache.qpid.amqp_version"));
+
+ _defaultVersion = (systemDefinedVersion == null)
+ ? getLatestSupportedVersion()
+ : systemDefinedVersion;
+ }
+
+ public static SortedSet<ProtocolVersion> getSupportedProtocolVersions()
+ {
+ return _supportedVersions;
+ }
+
+ public static ProtocolVersion parse(String name)
+ {
+ return _nameToVersionMap.get(name);
+ }
+
+ public static ProtocolVersion defaultProtocolVersion()
+ {
+ return _defaultVersion;
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueBindBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueBindBody.java
new file mode 100644
index 0000000000..d5f3b2b924
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueBindBody.java
@@ -0,0 +1,46 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueBindBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getArguments();
+
+ public AMQShortString getExchange();
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public AMQShortString getRoutingKey();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueBindOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueBindOkBody.java
new file mode 100644
index 0000000000..3e2f0104f8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueBindOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueBindOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareBody.java
new file mode 100644
index 0000000000..23066457e6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareBody.java
@@ -0,0 +1,50 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueDeclareBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getArguments();
+
+ public boolean getAutoDelete();
+
+ public boolean getDurable();
+
+ public boolean getExclusive();
+
+ public boolean getNowait();
+
+ public boolean getPassive();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareOkBody.java
new file mode 100644
index 0000000000..0557f2c54d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueDeclareOkBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueDeclareOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getConsumerCount();
+
+ public long getMessageCount();
+
+ public AMQShortString getQueue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteBody.java
new file mode 100644
index 0000000000..2cced4d67e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueDeleteBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getIfEmpty();
+
+ public boolean getIfUnused();
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteOkBody.java
new file mode 100644
index 0000000000..41acf6f246
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueDeleteOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueDeleteOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getMessageCount();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java
new file mode 100644
index 0000000000..1965345997
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueuePurgeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeOkBody.java
new file mode 100644
index 0000000000..2641dcf81d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueuePurgeOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueuePurgeOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getMessageCount();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindBody.java
new file mode 100644
index 0000000000..9c6caafc74
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueUnbindBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getArguments();
+
+ public AMQShortString getExchange();
+
+ public AMQShortString getQueue();
+
+ public AMQShortString getRoutingKey();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindOkBody.java
new file mode 100644
index 0000000000..bdd8eb9359
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/QueueUnbindOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface QueueUnbindOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/ServerMethodDispatcher.java b/java/common/src/main/java/org/apache/qpid/framing/ServerMethodDispatcher.java
new file mode 100644
index 0000000000..6df8defed1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/ServerMethodDispatcher.java
@@ -0,0 +1,67 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+import org.apache.qpid.AMQException;
+
+public interface ServerMethodDispatcher
+{
+
+ public boolean dispatchBasicAck(BasicAckBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancel(BasicCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsume(BasicConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGet(BasicGetBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicPublish(BasicPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQos(BasicQosBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecover(BasicRecoverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReject(BasicRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpen(ChannelOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpen(ConnectionOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecureOk(ConnectionSecureOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStartOk(ConnectionStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTuneOk(ConnectionTuneOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBound(ExchangeBoundBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclare(ExchangeDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDelete(ExchangeDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBind(QueueBindBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclare(QueueDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDelete(QueueDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurge(QueuePurgeBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommit(TxCommitBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollback(TxRollbackBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelect(TxSelectBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamCancelBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamCancelBody.java
new file mode 100644
index 0000000000..f5325ae4c0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamCancelBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamCancelBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getNowait();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamCancelOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamCancelOkBody.java
new file mode 100644
index 0000000000..f19410d97f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamCancelOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamCancelOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeBody.java
new file mode 100644
index 0000000000..0226547fd8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeBody.java
@@ -0,0 +1,47 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamConsumeBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public boolean getExclusive();
+
+
+ public boolean getNoLocal();
+
+ public boolean getNowait();
+
+ public AMQShortString getQueue();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeOkBody.java
new file mode 100644
index 0000000000..3d089823e2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamConsumeOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamConsumeOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamDeliverBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamDeliverBody.java
new file mode 100644
index 0000000000..76a6231ad6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamDeliverBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamDeliverBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getConsumerTag();
+
+ public long getDeliveryTag();
+
+ public AMQShortString getExchange();
+
+ public AMQShortString getQueue();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamPublishBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamPublishBody.java
new file mode 100644
index 0000000000..98860389bc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamPublishBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamPublishBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public boolean getImmediate();
+
+ public boolean getMandatory();
+
+ public AMQShortString getRoutingKey();
+
+ public int getTicket();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamQosBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamQosBody.java
new file mode 100644
index 0000000000..e28c4abd59
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamQosBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamQosBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getConsumeRate();
+
+ public boolean getGlobal();
+
+ public int getPrefetchCount();
+
+ public long getPrefetchSize();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamQosOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamQosOkBody.java
new file mode 100644
index 0000000000..1a71ba1dfa
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamQosOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamQosOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/StreamReturnBody.java b/java/common/src/main/java/org/apache/qpid/framing/StreamReturnBody.java
new file mode 100644
index 0000000000..e87863080d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/StreamReturnBody.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface StreamReturnBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public AMQShortString getExchange();
+
+ public int getReplyCode();
+
+ public AMQShortString getReplyText();
+
+ public AMQShortString getRoutingKey();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestContentBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestContentBody.java
new file mode 100644
index 0000000000..96b5a056c5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestContentBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestContentBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestContentOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestContentOkBody.java
new file mode 100644
index 0000000000..9da514a20b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestContentOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestContentOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getContentChecksum();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestIntegerBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestIntegerBody.java
new file mode 100644
index 0000000000..a024aba9c6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestIntegerBody.java
@@ -0,0 +1,44 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestIntegerBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public short getInteger1();
+
+ public int getInteger2();
+
+ public long getInteger3();
+
+ public long getInteger4();
+
+ public short getOperation();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestIntegerOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestIntegerOkBody.java
new file mode 100644
index 0000000000..7f7003031c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestIntegerOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestIntegerOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getResult();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestStringBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestStringBody.java
new file mode 100644
index 0000000000..9474521aad
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestStringBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestStringBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public short getOperation();
+
+ public AMQShortString getString1();
+
+ public byte[] getString2();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestStringOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestStringOkBody.java
new file mode 100644
index 0000000000..7dc519a92e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestStringOkBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestStringOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public byte[] getResult();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestTableBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestTableBody.java
new file mode 100644
index 0000000000..4b80b72771
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestTableBody.java
@@ -0,0 +1,40 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestTableBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public short getIntegerOp();
+
+ public short getStringOp();
+
+ public FieldTable getTable();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TestTableOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TestTableOkBody.java
new file mode 100644
index 0000000000..af3f3ca864
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TestTableOkBody.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TestTableOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public long getIntegerResult();
+
+ public byte[] getStringResult();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TunnelRequestBody.java b/java/common/src/main/java/org/apache/qpid/framing/TunnelRequestBody.java
new file mode 100644
index 0000000000..98785aa4cc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TunnelRequestBody.java
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TunnelRequestBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+
+ public FieldTable getMetaData();
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxCommitBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxCommitBody.java
new file mode 100644
index 0000000000..189ea0cd40
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxCommitBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxCommitBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxCommitOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxCommitOkBody.java
new file mode 100644
index 0000000000..3df65e0504
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxCommitOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxCommitOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxRollbackBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxRollbackBody.java
new file mode 100644
index 0000000000..d440dc8e04
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxRollbackBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxRollbackBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxRollbackOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxRollbackOkBody.java
new file mode 100644
index 0000000000..c542ff790a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxRollbackOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxRollbackOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxSelectBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxSelectBody.java
new file mode 100644
index 0000000000..c3c881cd9d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxSelectBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxSelectBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/TxSelectOkBody.java b/java/common/src/main/java/org/apache/qpid/framing/TxSelectOkBody.java
new file mode 100644
index 0000000000..6841283bb2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/TxSelectOkBody.java
@@ -0,0 +1,34 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ * 0-91
+ * 8-0
+ */
+
+package org.apache.qpid.framing;
+
+public interface TxSelectOkBody extends EncodableAMQDataBlock, AMQMethodBody
+{
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestBodyImpl.java
new file mode 100644
index 0000000000..88897e0ff6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class AccessRequestBodyImpl extends AMQMethodBody_0_9 implements AccessRequestBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new AccessRequestBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 30;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final AMQShortString _realm; // [realm]
+ private final byte _bitfield0; // [exclusive, passive, active, write, read]
+
+ // Constructor
+ public AccessRequestBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _realm = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public AccessRequestBodyImpl(
+ AMQShortString realm,
+ boolean exclusive,
+ boolean passive,
+ boolean active,
+ boolean write,
+ boolean read
+ )
+ {
+ _realm = realm;
+ byte bitfield0 = (byte)0;
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( write )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( read )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getRealm()
+ {
+ return _realm;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getWrite()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getRead()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _realm );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _realm );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchAccessRequest(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[AccessRequestBodyImpl: ");
+ buf.append( "realm=" );
+ buf.append( getRealm() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append( ", " );
+ buf.append( "write=" );
+ buf.append( getWrite() );
+ buf.append( ", " );
+ buf.append( "read=" );
+ buf.append( getRead() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestOkBodyImpl.java
new file mode 100644
index 0000000000..95087228f2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/AccessRequestOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class AccessRequestOkBodyImpl extends AMQMethodBody_0_9 implements AccessRequestOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new AccessRequestOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 30;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+
+ // Constructor
+ public AccessRequestOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ }
+
+ public AccessRequestOkBodyImpl(
+ int ticket
+ )
+ {
+ _ticket = ticket;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchAccessRequestOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[AccessRequestOkBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicAckBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicAckBodyImpl.java
new file mode 100644
index 0000000000..b1f9757391
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicAckBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicAckBodyImpl extends AMQMethodBody_0_9 implements BasicAckBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicAckBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [multiple]
+
+ // Constructor
+ public BasicAckBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicAckBodyImpl(
+ long deliveryTag,
+ boolean multiple
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( multiple )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getMultiple()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicAck(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicAckBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "multiple=" );
+ buf.append( getMultiple() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelBodyImpl.java
new file mode 100644
index 0000000000..f536b9d8a5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelBodyImpl extends AMQMethodBody_0_9 implements BasicCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public BasicCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelOkBodyImpl.java
new file mode 100644
index 0000000000..ae2fe58ff9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelOkBodyImpl extends AMQMethodBody_0_9 implements BasicCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeBodyImpl.java
new file mode 100644
index 0000000000..177dc6ace2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeBodyImpl extends AMQMethodBody_0_9 implements BasicConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public BasicConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public BasicConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..647c58cbc4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeOkBodyImpl extends AMQMethodBody_0_9 implements BasicConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicDeliverBodyImpl.java
new file mode 100644
index 0000000000..3d2602e605
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicDeliverBodyImpl.java
@@ -0,0 +1,168 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicDeliverBodyImpl extends AMQMethodBody_0_9 implements BasicDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetBodyImpl.java
new file mode 100644
index 0000000000..0b21ddf8e9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetBodyImpl extends AMQMethodBody_0_9 implements BasicGetBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [noAck]
+
+ // Constructor
+ public BasicGetBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicGetBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean noAck
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicGet(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetEmptyBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetEmptyBodyImpl.java
new file mode 100644
index 0000000000..29cf72d053
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetEmptyBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetEmptyBodyImpl extends AMQMethodBody_0_9 implements BasicGetEmptyBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetEmptyBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 72;
+
+ // Fields declared in specification
+ private final AMQShortString _clusterId; // [clusterId]
+
+ // Constructor
+ public BasicGetEmptyBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clusterId = readAMQShortString( buffer );
+ }
+
+ public BasicGetEmptyBodyImpl(
+ AMQShortString clusterId
+ )
+ {
+ _clusterId = clusterId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getClusterId()
+ {
+ return _clusterId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clusterId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _clusterId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicGetEmpty(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetEmptyBodyImpl: ");
+ buf.append( "clusterId=" );
+ buf.append( getClusterId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetOkBodyImpl.java
new file mode 100644
index 0000000000..00bbdd7082
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicGetOkBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetOkBodyImpl extends AMQMethodBody_0_9 implements BasicGetOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 71;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public BasicGetOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public BasicGetOkBodyImpl(
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ long messageCount
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 13;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicGetOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetOkBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicPublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicPublishBodyImpl.java
new file mode 100644
index 0000000000..b9f941b85e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicPublishBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicPublishBodyImpl extends AMQMethodBody_0_9 implements BasicPublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicPublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+
+ // Constructor
+ public BasicPublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicPublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicPublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicPublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosBodyImpl.java
new file mode 100644
index 0000000000..c461f6b118
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosBodyImpl extends AMQMethodBody_0_9 implements BasicQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public BasicQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosOkBodyImpl.java
new file mode 100644
index 0000000000..9bc5d6f3b8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosOkBodyImpl extends AMQMethodBody_0_9 implements BasicQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverBodyImpl.java
new file mode 100644
index 0000000000..498e8f85dc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverBodyImpl extends AMQMethodBody_0_9 implements BasicRecoverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRecoverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRecoverBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicRecover(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncBodyImpl.java
new file mode 100644
index 0000000000..05390ea493
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverSyncBodyImpl extends AMQMethodBody_0_9 implements BasicRecoverSyncBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverSyncBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 102;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRecoverSyncBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRecoverSyncBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicRecoverSync(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverSyncBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncOkBodyImpl.java
new file mode 100644
index 0000000000..0b889e4a21
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRecoverSyncOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverSyncOkBodyImpl extends AMQMethodBody_0_9 implements BasicRecoverSyncOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverSyncOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 101;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicRecoverSyncOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicRecoverSyncOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicRecoverSyncOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverSyncOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRejectBodyImpl.java
new file mode 100644
index 0000000000..3e8cf6b825
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicRejectBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRejectBodyImpl extends AMQMethodBody_0_9 implements BasicRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRejectBodyImpl(
+ long deliveryTag,
+ boolean requeue
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRejectBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicReturnBodyImpl.java
new file mode 100644
index 0000000000..c88391dca3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/BasicReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicReturnBodyImpl extends AMQMethodBody_0_9 implements BasicReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchBasicReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseBodyImpl.java
new file mode 100644
index 0000000000..ceadeb8f7c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseBodyImpl extends AMQMethodBody_0_9 implements ChannelCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ChannelCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ChannelCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseOkBodyImpl.java
new file mode 100644
index 0000000000..5df83134f7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseOkBodyImpl extends AMQMethodBody_0_9 implements ChannelCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowBodyImpl.java
new file mode 100644
index 0000000000..62e9bf90a0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowBodyImpl extends AMQMethodBody_0_9 implements ChannelFlowBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelFlow(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowOkBodyImpl.java
new file mode 100644
index 0000000000..5c73bd2ff4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelFlowOkBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowOkBodyImpl extends AMQMethodBody_0_9 implements ChannelFlowOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowOkBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelFlowOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowOkBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOkBodyImpl.java
new file mode 100644
index 0000000000..7945fcec47
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOkBodyImpl extends AMQMethodBody_0_9 implements ChannelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenBodyImpl.java
new file mode 100644
index 0000000000..10c06cb132
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenBodyImpl extends AMQMethodBody_0_9 implements ChannelOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final AMQShortString _outOfBand; // [outOfBand]
+
+ // Constructor
+ public ChannelOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _outOfBand = readAMQShortString( buffer );
+ }
+
+ public ChannelOpenBodyImpl(
+ AMQShortString outOfBand
+ )
+ {
+ _outOfBand = outOfBand;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getOutOfBand()
+ {
+ return _outOfBand;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _outOfBand );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _outOfBand );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenBodyImpl: ");
+ buf.append( "outOfBand=" );
+ buf.append( getOutOfBand() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenOkBodyImpl.java
new file mode 100644
index 0000000000..1c2a3f4a57
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelOpenOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenOkBodyImpl extends AMQMethodBody_0_9 implements ChannelOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final byte[] _channelId; // [channelId]
+
+ // Constructor
+ public ChannelOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelId = readBytes( buffer );
+ }
+
+ public ChannelOpenOkBodyImpl(
+ byte[] channelId
+ )
+ {
+ _channelId = channelId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChannelId()
+ {
+ return _channelId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _channelId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _channelId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenOkBodyImpl: ");
+ buf.append( "channelId=" );
+ buf.append( getChannelId() == null ? "null" : java.util.Arrays.toString( getChannelId() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPingBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPingBodyImpl.java
new file mode 100644
index 0000000000..ba02f17b99
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPingBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelPingBodyImpl extends AMQMethodBody_0_9 implements ChannelPingBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelPingBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelPingBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelPingBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelPing(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelPingBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPongBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPongBodyImpl.java
new file mode 100644
index 0000000000..da37e5127e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelPongBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelPongBodyImpl extends AMQMethodBody_0_9 implements ChannelPongBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelPongBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelPongBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelPongBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelPong(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelPongBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelResumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelResumeBodyImpl.java
new file mode 100644
index 0000000000..47fc5c60be
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ChannelResumeBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelResumeBodyImpl extends AMQMethodBody_0_9 implements ChannelResumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelResumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final byte[] _channelId; // [channelId]
+
+ // Constructor
+ public ChannelResumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelId = readBytes( buffer );
+ }
+
+ public ChannelResumeBodyImpl(
+ byte[] channelId
+ )
+ {
+ _channelId = channelId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChannelId()
+ {
+ return _channelId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _channelId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _channelId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchChannelResume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelResumeBodyImpl: ");
+ buf.append( "channelId=" );
+ buf.append( getChannelId() == null ? "null" : java.util.Arrays.toString( getChannelId() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ClientMethodDispatcher_0_9.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ClientMethodDispatcher_0_9.java
new file mode 100644
index 0000000000..f1bf0d5a53
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ClientMethodDispatcher_0_9.java
@@ -0,0 +1,97 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+public interface ClientMethodDispatcher_0_9 extends ClientMethodDispatcher
+{
+
+ public boolean dispatchAccessRequestOk(AccessRequestOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancelOk(BasicCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsumeOk(BasicConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicDeliver(BasicDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetEmpty(BasicGetEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetOk(BasicGetOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQosOk(BasicQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecoverSyncOk(BasicRecoverSyncOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReturn(BasicReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOk(ChannelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpenOk(ChannelOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelPing(ChannelPingBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelPong(ChannelPongBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpenOk(ConnectionOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionRedirect(ConnectionRedirectBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecure(ConnectionSecureBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStart(ConnectionStartBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTune(ConnectionTuneBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxSelectOk(DtxSelectOkBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxStartOk(DtxStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBoundOk(ExchangeBoundOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclareOk(ExchangeDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeleteOk(ExchangeDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileCancelOk(FileCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileConsumeOk(FileConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileDeliver(FileDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpen(FileOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpenOk(FileOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileQosOk(FileQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileReturn(FileReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchFileStage(FileStageBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageAppend(MessageAppendBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageCheckpoint(MessageCheckpointBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageClose(MessageCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageEmpty(MessageEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOffset(MessageOffsetBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOk(MessageOkBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOpen(MessageOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageReject(MessageRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageResume(MessageResumeBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageTransfer(MessageTransferBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBindOk(QueueBindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclareOk(QueueDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeleteOk(QueueDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurgeOk(QueuePurgeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueUnbindOk(QueueUnbindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamCancelOk(StreamCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamConsumeOk(StreamConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamDeliver(StreamDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamQosOk(StreamQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamReturn(StreamReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommitOk(TxCommitOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollbackOk(TxRollbackOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelectOk(TxSelectOkBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseBodyImpl.java
new file mode 100644
index 0000000000..e0f8704f67
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseBodyImpl extends AMQMethodBody_0_9 implements ConnectionCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ConnectionCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ConnectionCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseOkBodyImpl.java
new file mode 100644
index 0000000000..98f73b0beb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseOkBodyImpl extends AMQMethodBody_0_9 implements ConnectionCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 51;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ConnectionCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ConnectionCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenBodyImpl.java
new file mode 100644
index 0000000000..86c40656bb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenBodyImpl.java
@@ -0,0 +1,142 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenBodyImpl extends AMQMethodBody_0_9 implements ConnectionOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final AMQShortString _virtualHost; // [virtualHost]
+ private final AMQShortString _capabilities; // [capabilities]
+ private final byte _bitfield0; // [insist]
+
+ // Constructor
+ public ConnectionOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _virtualHost = readAMQShortString( buffer );
+ _capabilities = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ConnectionOpenBodyImpl(
+ AMQShortString virtualHost,
+ AMQShortString capabilities,
+ boolean insist
+ )
+ {
+ _virtualHost = virtualHost;
+ _capabilities = capabilities;
+ byte bitfield0 = (byte)0;
+ if( insist )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getVirtualHost()
+ {
+ return _virtualHost;
+ }
+ public final AMQShortString getCapabilities()
+ {
+ return _capabilities;
+ }
+ public final boolean getInsist()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _virtualHost );
+ size += getSizeOf( _capabilities );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _virtualHost );
+ writeAMQShortString( buffer, _capabilities );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenBodyImpl: ");
+ buf.append( "virtualHost=" );
+ buf.append( getVirtualHost() );
+ buf.append( ", " );
+ buf.append( "capabilities=" );
+ buf.append( getCapabilities() );
+ buf.append( ", " );
+ buf.append( "insist=" );
+ buf.append( getInsist() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenOkBodyImpl.java
new file mode 100644
index 0000000000..0439fc01b8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionOpenOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenOkBodyImpl extends AMQMethodBody_0_9 implements ConnectionOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final AMQShortString _knownHosts; // [knownHosts]
+
+ // Constructor
+ public ConnectionOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _knownHosts = readAMQShortString( buffer );
+ }
+
+ public ConnectionOpenOkBodyImpl(
+ AMQShortString knownHosts
+ )
+ {
+ _knownHosts = knownHosts;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getKnownHosts()
+ {
+ return _knownHosts;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _knownHosts );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _knownHosts );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenOkBodyImpl: ");
+ buf.append( "knownHosts=" );
+ buf.append( getKnownHosts() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionRedirectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionRedirectBodyImpl.java
new file mode 100644
index 0000000000..270161db47
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionRedirectBodyImpl.java
@@ -0,0 +1,125 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionRedirectBodyImpl extends AMQMethodBody_0_9 implements ConnectionRedirectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionRedirectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 42;
+
+ // Fields declared in specification
+ private final AMQShortString _host; // [host]
+ private final AMQShortString _knownHosts; // [knownHosts]
+
+ // Constructor
+ public ConnectionRedirectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _host = readAMQShortString( buffer );
+ _knownHosts = readAMQShortString( buffer );
+ }
+
+ public ConnectionRedirectBodyImpl(
+ AMQShortString host,
+ AMQShortString knownHosts
+ )
+ {
+ _host = host;
+ _knownHosts = knownHosts;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getHost()
+ {
+ return _host;
+ }
+ public final AMQShortString getKnownHosts()
+ {
+ return _knownHosts;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _host );
+ size += getSizeOf( _knownHosts );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _host );
+ writeAMQShortString( buffer, _knownHosts );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionRedirect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionRedirectBodyImpl: ");
+ buf.append( "host=" );
+ buf.append( getHost() );
+ buf.append( ", " );
+ buf.append( "knownHosts=" );
+ buf.append( getKnownHosts() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureBodyImpl.java
new file mode 100644
index 0000000000..19b9532f5b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureBodyImpl extends AMQMethodBody_0_9 implements ConnectionSecureBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte[] _challenge; // [challenge]
+
+ // Constructor
+ public ConnectionSecureBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _challenge = readBytes( buffer );
+ }
+
+ public ConnectionSecureBodyImpl(
+ byte[] challenge
+ )
+ {
+ _challenge = challenge;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChallenge()
+ {
+ return _challenge;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _challenge );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _challenge );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionSecure(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureBodyImpl: ");
+ buf.append( "challenge=" );
+ buf.append( getChallenge() == null ? "null" : java.util.Arrays.toString( getChallenge() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureOkBodyImpl.java
new file mode 100644
index 0000000000..7891d7d24c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionSecureOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureOkBodyImpl extends AMQMethodBody_0_9 implements ConnectionSecureOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte[] _response; // [response]
+
+ // Constructor
+ public ConnectionSecureOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _response = readBytes( buffer );
+ }
+
+ public ConnectionSecureOkBodyImpl(
+ byte[] response
+ )
+ {
+ _response = response;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _response );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _response );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionSecureOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureOkBodyImpl: ");
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartBodyImpl.java
new file mode 100644
index 0000000000..ec82327f4d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartBodyImpl.java
@@ -0,0 +1,162 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartBodyImpl extends AMQMethodBody_0_9 implements ConnectionStartBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final short _versionMajor; // [versionMajor]
+ private final short _versionMinor; // [versionMinor]
+ private final FieldTable _serverProperties; // [serverProperties]
+ private final byte[] _mechanisms; // [mechanisms]
+ private final byte[] _locales; // [locales]
+
+ // Constructor
+ public ConnectionStartBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _versionMajor = readUnsignedByte( buffer );
+ _versionMinor = readUnsignedByte( buffer );
+ _serverProperties = readFieldTable( buffer );
+ _mechanisms = readBytes( buffer );
+ _locales = readBytes( buffer );
+ }
+
+ public ConnectionStartBodyImpl(
+ short versionMajor,
+ short versionMinor,
+ FieldTable serverProperties,
+ byte[] mechanisms,
+ byte[] locales
+ )
+ {
+ _versionMajor = versionMajor;
+ _versionMinor = versionMinor;
+ _serverProperties = serverProperties;
+ _mechanisms = mechanisms;
+ _locales = locales;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final short getVersionMajor()
+ {
+ return _versionMajor;
+ }
+ public final short getVersionMinor()
+ {
+ return _versionMinor;
+ }
+ public final FieldTable getServerProperties()
+ {
+ return _serverProperties;
+ }
+ public final byte[] getMechanisms()
+ {
+ return _mechanisms;
+ }
+ public final byte[] getLocales()
+ {
+ return _locales;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _serverProperties );
+ size += getSizeOf( _mechanisms );
+ size += getSizeOf( _locales );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedByte( buffer, _versionMajor );
+ writeUnsignedByte( buffer, _versionMinor );
+ writeFieldTable( buffer, _serverProperties );
+ writeBytes( buffer, _mechanisms );
+ writeBytes( buffer, _locales );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionStart(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartBodyImpl: ");
+ buf.append( "versionMajor=" );
+ buf.append( getVersionMajor() );
+ buf.append( ", " );
+ buf.append( "versionMinor=" );
+ buf.append( getVersionMinor() );
+ buf.append( ", " );
+ buf.append( "serverProperties=" );
+ buf.append( getServerProperties() );
+ buf.append( ", " );
+ buf.append( "mechanisms=" );
+ buf.append( getMechanisms() == null ? "null" : java.util.Arrays.toString( getMechanisms() ) );
+ buf.append( ", " );
+ buf.append( "locales=" );
+ buf.append( getLocales() == null ? "null" : java.util.Arrays.toString( getLocales() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartOkBodyImpl.java
new file mode 100644
index 0000000000..cdc77c87fd
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionStartOkBodyImpl.java
@@ -0,0 +1,151 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartOkBodyImpl extends AMQMethodBody_0_9 implements ConnectionStartOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final FieldTable _clientProperties; // [clientProperties]
+ private final AMQShortString _mechanism; // [mechanism]
+ private final byte[] _response; // [response]
+ private final AMQShortString _locale; // [locale]
+
+ // Constructor
+ public ConnectionStartOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clientProperties = readFieldTable( buffer );
+ _mechanism = readAMQShortString( buffer );
+ _response = readBytes( buffer );
+ _locale = readAMQShortString( buffer );
+ }
+
+ public ConnectionStartOkBodyImpl(
+ FieldTable clientProperties,
+ AMQShortString mechanism,
+ byte[] response,
+ AMQShortString locale
+ )
+ {
+ _clientProperties = clientProperties;
+ _mechanism = mechanism;
+ _response = response;
+ _locale = locale;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getClientProperties()
+ {
+ return _clientProperties;
+ }
+ public final AMQShortString getMechanism()
+ {
+ return _mechanism;
+ }
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+ public final AMQShortString getLocale()
+ {
+ return _locale;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clientProperties );
+ size += getSizeOf( _mechanism );
+ size += getSizeOf( _response );
+ size += getSizeOf( _locale );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _clientProperties );
+ writeAMQShortString( buffer, _mechanism );
+ writeBytes( buffer, _response );
+ writeAMQShortString( buffer, _locale );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionStartOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartOkBodyImpl: ");
+ buf.append( "clientProperties=" );
+ buf.append( getClientProperties() );
+ buf.append( ", " );
+ buf.append( "mechanism=" );
+ buf.append( getMechanism() );
+ buf.append( ", " );
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append( ", " );
+ buf.append( "locale=" );
+ buf.append( getLocale() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneBodyImpl.java
new file mode 100644
index 0000000000..a5cb1f4d77
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneBodyImpl extends AMQMethodBody_0_9 implements ConnectionTuneBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionTune(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneOkBodyImpl.java
new file mode 100644
index 0000000000..2dee4765f5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ConnectionTuneOkBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneOkBodyImpl extends AMQMethodBody_0_9 implements ConnectionTuneOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneOkBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchConnectionTuneOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneOkBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectBodyImpl.java
new file mode 100644
index 0000000000..5739697389
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxSelectBodyImpl extends AMQMethodBody_0_9 implements DtxSelectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxSelectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxSelectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxSelectBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchDtxSelect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxSelectBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectOkBodyImpl.java
new file mode 100644
index 0000000000..b379501617
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxSelectOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxSelectOkBodyImpl extends AMQMethodBody_0_9 implements DtxSelectOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxSelectOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxSelectOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxSelectOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchDtxSelectOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxSelectOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartBodyImpl.java
new file mode 100644
index 0000000000..162c0b31ad
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxStartBodyImpl extends AMQMethodBody_0_9 implements DtxStartBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxStartBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final AMQShortString _dtxIdentifier; // [dtxIdentifier]
+
+ // Constructor
+ public DtxStartBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _dtxIdentifier = readAMQShortString( buffer );
+ }
+
+ public DtxStartBodyImpl(
+ AMQShortString dtxIdentifier
+ )
+ {
+ _dtxIdentifier = dtxIdentifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getDtxIdentifier()
+ {
+ return _dtxIdentifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _dtxIdentifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _dtxIdentifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchDtxStart(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxStartBodyImpl: ");
+ buf.append( "dtxIdentifier=" );
+ buf.append( getDtxIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartOkBodyImpl.java
new file mode 100644
index 0000000000..fbe9b86e56
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/DtxStartOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxStartOkBodyImpl extends AMQMethodBody_0_9 implements DtxStartOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxStartOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxStartOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxStartOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchDtxStartOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxStartOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundBodyImpl.java
new file mode 100644
index 0000000000..92ba4edc03
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundBodyImpl.java
@@ -0,0 +1,138 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundBodyImpl extends AMQMethodBody_0_9 implements ExchangeBoundBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 22;
+
+ // Fields declared in specification
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _queue; // [queue]
+
+ // Constructor
+ public ExchangeBoundBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _queue = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundBodyImpl(
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString queue
+ )
+ {
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _queue = queue;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _queue );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeBound(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundBodyImpl: ");
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundOkBodyImpl.java
new file mode 100644
index 0000000000..4f594b9a70
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeBoundOkBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundOkBodyImpl extends AMQMethodBody_0_9 implements ExchangeBoundOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 23;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+
+ // Constructor
+ public ExchangeBoundOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundOkBodyImpl(
+ int replyCode,
+ AMQShortString replyText
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeBoundOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundOkBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareBodyImpl.java
new file mode 100644
index 0000000000..50b6889735
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareBodyImpl.java
@@ -0,0 +1,220 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareBodyImpl extends AMQMethodBody_0_9 implements ExchangeDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _type; // [type]
+ private final byte _bitfield0; // [passive, durable, autoDelete, internal, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public ExchangeDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _type = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public ExchangeDeclareBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString type,
+ boolean passive,
+ boolean durable,
+ boolean autoDelete,
+ boolean internal,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _type = type;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( internal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getType()
+ {
+ return _type;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getInternal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _type );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _type );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "type=" );
+ buf.append( getType() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "internal=" );
+ buf.append( getInternal() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..adaff55cc8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeclareOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareOkBodyImpl extends AMQMethodBody_0_9 implements ExchangeDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeclareOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteBodyImpl.java
new file mode 100644
index 0000000000..60da6c8330
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteBodyImpl.java
@@ -0,0 +1,154 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteBodyImpl extends AMQMethodBody_0_9 implements ExchangeDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final byte _bitfield0; // [ifUnused, nowait]
+
+ // Constructor
+ public ExchangeDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ExchangeDeleteBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ boolean ifUnused,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..89eab25c74
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ExchangeDeleteOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteOkBodyImpl extends AMQMethodBody_0_9 implements ExchangeDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeleteOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchExchangeDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileAckBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileAckBodyImpl.java
new file mode 100644
index 0000000000..b2e0727fc3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileAckBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileAckBodyImpl extends AMQMethodBody_0_9 implements FileAckBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileAckBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [multiple]
+
+ // Constructor
+ public FileAckBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileAckBodyImpl(
+ long deliveryTag,
+ boolean multiple
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( multiple )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getMultiple()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileAck(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileAckBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "multiple=" );
+ buf.append( getMultiple() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelBodyImpl.java
new file mode 100644
index 0000000000..a1cddb1bc1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileCancelBodyImpl extends AMQMethodBody_0_9 implements FileCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public FileCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelOkBodyImpl.java
new file mode 100644
index 0000000000..258b55f6d8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileCancelOkBodyImpl extends AMQMethodBody_0_9 implements FileCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public FileCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public FileCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeBodyImpl.java
new file mode 100644
index 0000000000..d841fab69d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileConsumeBodyImpl extends AMQMethodBody_0_9 implements FileConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive, nowait]
+ private final FieldTable _filter; // [filter]
+
+ // Constructor
+ public FileConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _filter = readFieldTable( buffer );
+ }
+
+ public FileConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ boolean nowait,
+ FieldTable filter
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ _bitfield0 = bitfield0;
+ _filter = filter;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final FieldTable getFilter()
+ {
+ return _filter;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _filter );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _filter );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "filter=" );
+ buf.append( getFilter() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..139ab0cbce
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileConsumeOkBodyImpl extends AMQMethodBody_0_9 implements FileConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public FileConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public FileConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileDeliverBodyImpl.java
new file mode 100644
index 0000000000..5e4b15ef74
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileDeliverBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileDeliverBodyImpl extends AMQMethodBody_0_9 implements FileDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public FileDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public FileDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString identifier
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenBodyImpl.java
new file mode 100644
index 0000000000..7c2352eee3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileOpenBodyImpl extends AMQMethodBody_0_9 implements FileOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final AMQShortString _identifier; // [identifier]
+ private final long _contentSize; // [contentSize]
+
+ // Constructor
+ public FileOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _identifier = readAMQShortString( buffer );
+ _contentSize = readLong( buffer );
+ }
+
+ public FileOpenBodyImpl(
+ AMQShortString identifier,
+ long contentSize
+ )
+ {
+ _identifier = identifier;
+ _contentSize = contentSize;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+ public final long getContentSize()
+ {
+ return _contentSize;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _identifier );
+ writeLong( buffer, _contentSize );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileOpenBodyImpl: ");
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append( ", " );
+ buf.append( "contentSize=" );
+ buf.append( getContentSize() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenOkBodyImpl.java
new file mode 100644
index 0000000000..05a132cce2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileOpenOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileOpenOkBodyImpl extends AMQMethodBody_0_9 implements FileOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _stagedSize; // [stagedSize]
+
+ // Constructor
+ public FileOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _stagedSize = readLong( buffer );
+ }
+
+ public FileOpenOkBodyImpl(
+ long stagedSize
+ )
+ {
+ _stagedSize = stagedSize;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getStagedSize()
+ {
+ return _stagedSize;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _stagedSize );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileOpenOkBodyImpl: ");
+ buf.append( "stagedSize=" );
+ buf.append( getStagedSize() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FilePublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FilePublishBodyImpl.java
new file mode 100644
index 0000000000..f04a869bcc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FilePublishBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FilePublishBodyImpl extends AMQMethodBody_0_9 implements FilePublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FilePublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public FilePublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public FilePublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate,
+ AMQShortString identifier
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ _bitfield0 = bitfield0;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFilePublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FilePublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosBodyImpl.java
new file mode 100644
index 0000000000..0d6fe98029
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileQosBodyImpl extends AMQMethodBody_0_9 implements FileQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public FileQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosOkBodyImpl.java
new file mode 100644
index 0000000000..b7703c633a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileQosOkBodyImpl extends AMQMethodBody_0_9 implements FileQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public FileQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public FileQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileRejectBodyImpl.java
new file mode 100644
index 0000000000..b73014ebe2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileRejectBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileRejectBodyImpl extends AMQMethodBody_0_9 implements FileRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public FileRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileRejectBodyImpl(
+ long deliveryTag,
+ boolean requeue
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileRejectBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileReturnBodyImpl.java
new file mode 100644
index 0000000000..4a0d600f13
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileReturnBodyImpl extends AMQMethodBody_0_9 implements FileReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public FileReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public FileReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileStageBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileStageBodyImpl.java
new file mode 100644
index 0000000000..dfb76279e8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/FileStageBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileStageBodyImpl extends AMQMethodBody_0_9 implements FileStageBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileStageBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+
+ // Constructor
+ public FileStageBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public FileStageBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchFileStage(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileStageBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageAppendBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageAppendBodyImpl.java
new file mode 100644
index 0000000000..4964c77ab6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageAppendBodyImpl.java
@@ -0,0 +1,125 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageAppendBodyImpl extends AMQMethodBody_0_9 implements MessageAppendBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageAppendBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final byte[] _reference; // [reference]
+ private final byte[] _bytes; // [bytes]
+
+ // Constructor
+ public MessageAppendBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _reference = readBytes( buffer );
+ _bytes = readBytes( buffer );
+ }
+
+ public MessageAppendBodyImpl(
+ byte[] reference,
+ byte[] bytes
+ )
+ {
+ _reference = reference;
+ _bytes = bytes;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getReference()
+ {
+ return _reference;
+ }
+ public final byte[] getBytes()
+ {
+ return _bytes;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _reference );
+ size += getSizeOf( _bytes );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _reference );
+ writeBytes( buffer, _bytes );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageAppend(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageAppendBodyImpl: ");
+ buf.append( "reference=" );
+ buf.append( getReference() == null ? "null" : java.util.Arrays.toString( getReference() ) );
+ buf.append( ", " );
+ buf.append( "bytes=" );
+ buf.append( getBytes() == null ? "null" : java.util.Arrays.toString( getBytes() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCancelBodyImpl.java
new file mode 100644
index 0000000000..661b6cd9a3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCancelBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageCancelBodyImpl extends AMQMethodBody_0_9 implements MessageCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _destination; // [destination]
+
+ // Constructor
+ public MessageCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _destination = readAMQShortString( buffer );
+ }
+
+ public MessageCancelBodyImpl(
+ AMQShortString destination
+ )
+ {
+ _destination = destination;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getDestination()
+ {
+ return _destination;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _destination );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _destination );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageCancelBodyImpl: ");
+ buf.append( "destination=" );
+ buf.append( getDestination() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCheckpointBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCheckpointBodyImpl.java
new file mode 100644
index 0000000000..921348ac71
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCheckpointBodyImpl.java
@@ -0,0 +1,125 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageCheckpointBodyImpl extends AMQMethodBody_0_9 implements MessageCheckpointBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageCheckpointBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final byte[] _reference; // [reference]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public MessageCheckpointBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _reference = readBytes( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public MessageCheckpointBodyImpl(
+ byte[] reference,
+ AMQShortString identifier
+ )
+ {
+ _reference = reference;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getReference()
+ {
+ return _reference;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _reference );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _reference );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageCheckpoint(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageCheckpointBodyImpl: ");
+ buf.append( "reference=" );
+ buf.append( getReference() == null ? "null" : java.util.Arrays.toString( getReference() ) );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCloseBodyImpl.java
new file mode 100644
index 0000000000..78185ec507
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageCloseBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageCloseBodyImpl extends AMQMethodBody_0_9 implements MessageCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final byte[] _reference; // [reference]
+
+ // Constructor
+ public MessageCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _reference = readBytes( buffer );
+ }
+
+ public MessageCloseBodyImpl(
+ byte[] reference
+ )
+ {
+ _reference = reference;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getReference()
+ {
+ return _reference;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _reference );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _reference );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageCloseBodyImpl: ");
+ buf.append( "reference=" );
+ buf.append( getReference() == null ? "null" : java.util.Arrays.toString( getReference() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageConsumeBodyImpl.java
new file mode 100644
index 0000000000..fe72503c17
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageConsumeBodyImpl.java
@@ -0,0 +1,194 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageConsumeBodyImpl extends AMQMethodBody_0_9 implements MessageConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _destination; // [destination]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive]
+ private final FieldTable _filter; // [filter]
+
+ // Constructor
+ public MessageConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _destination = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _filter = readFieldTable( buffer );
+ }
+
+ public MessageConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString destination,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ FieldTable filter
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _destination = destination;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ _bitfield0 = bitfield0;
+ _filter = filter;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getDestination()
+ {
+ return _destination;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final FieldTable getFilter()
+ {
+ return _filter;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _destination );
+ size += getSizeOf( _filter );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _destination );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _filter );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "destination=" );
+ buf.append( getDestination() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "filter=" );
+ buf.append( getFilter() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageEmptyBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageEmptyBodyImpl.java
new file mode 100644
index 0000000000..1383836f8e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageEmptyBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageEmptyBodyImpl extends AMQMethodBody_0_9 implements MessageEmptyBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageEmptyBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 510;
+
+ // Fields declared in specification
+
+ // Constructor
+ public MessageEmptyBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public MessageEmptyBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageEmpty(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageEmptyBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageGetBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageGetBodyImpl.java
new file mode 100644
index 0000000000..b812309ac0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageGetBodyImpl.java
@@ -0,0 +1,154 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageGetBodyImpl extends AMQMethodBody_0_9 implements MessageGetBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageGetBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _destination; // [destination]
+ private final byte _bitfield0; // [noAck]
+
+ // Constructor
+ public MessageGetBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _destination = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public MessageGetBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString destination,
+ boolean noAck
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _destination = destination;
+ byte bitfield0 = (byte)0;
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getDestination()
+ {
+ return _destination;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _destination );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _destination );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageGet(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageGetBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "destination=" );
+ buf.append( getDestination() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOffsetBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOffsetBodyImpl.java
new file mode 100644
index 0000000000..52d907df2b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOffsetBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageOffsetBodyImpl extends AMQMethodBody_0_9 implements MessageOffsetBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageOffsetBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 530;
+
+ // Fields declared in specification
+ private final long _value; // [value]
+
+ // Constructor
+ public MessageOffsetBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _value = readLong( buffer );
+ }
+
+ public MessageOffsetBodyImpl(
+ long value
+ )
+ {
+ _value = value;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getValue()
+ {
+ return _value;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _value );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageOffset(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageOffsetBodyImpl: ");
+ buf.append( "value=" );
+ buf.append( getValue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOkBodyImpl.java
new file mode 100644
index 0000000000..c0477e2c13
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageOkBodyImpl extends AMQMethodBody_0_9 implements MessageOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 500;
+
+ // Fields declared in specification
+
+ // Constructor
+ public MessageOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public MessageOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOpenBodyImpl.java
new file mode 100644
index 0000000000..d500317bfe
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageOpenBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageOpenBodyImpl extends AMQMethodBody_0_9 implements MessageOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final byte[] _reference; // [reference]
+
+ // Constructor
+ public MessageOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _reference = readBytes( buffer );
+ }
+
+ public MessageOpenBodyImpl(
+ byte[] reference
+ )
+ {
+ _reference = reference;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getReference()
+ {
+ return _reference;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _reference );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _reference );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageOpenBodyImpl: ");
+ buf.append( "reference=" );
+ buf.append( getReference() == null ? "null" : java.util.Arrays.toString( getReference() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageQosBodyImpl.java
new file mode 100644
index 0000000000..ce4b655131
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageQosBodyImpl extends AMQMethodBody_0_9 implements MessageQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 110;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public MessageQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public MessageQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRecoverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRecoverBodyImpl.java
new file mode 100644
index 0000000000..7fac0d9a46
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRecoverBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageRecoverBodyImpl extends AMQMethodBody_0_9 implements MessageRecoverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageRecoverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public MessageRecoverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public MessageRecoverBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageRecover(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageRecoverBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRejectBodyImpl.java
new file mode 100644
index 0000000000..eb15a960c5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageRejectBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageRejectBodyImpl extends AMQMethodBody_0_9 implements MessageRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 520;
+
+ // Fields declared in specification
+ private final int _code; // [code]
+ private final AMQShortString _text; // [text]
+
+ // Constructor
+ public MessageRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _code = readUnsignedShort( buffer );
+ _text = readAMQShortString( buffer );
+ }
+
+ public MessageRejectBodyImpl(
+ int code,
+ AMQShortString text
+ )
+ {
+ _code = code;
+ _text = text;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getCode()
+ {
+ return _code;
+ }
+ public final AMQShortString getText()
+ {
+ return _text;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _text );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _code );
+ writeAMQShortString( buffer, _text );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageRejectBodyImpl: ");
+ buf.append( "code=" );
+ buf.append( getCode() );
+ buf.append( ", " );
+ buf.append( "text=" );
+ buf.append( getText() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageResumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageResumeBodyImpl.java
new file mode 100644
index 0000000000..b8bcb2f309
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageResumeBodyImpl.java
@@ -0,0 +1,125 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageResumeBodyImpl extends AMQMethodBody_0_9 implements MessageResumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageResumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final byte[] _reference; // [reference]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public MessageResumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _reference = readBytes( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public MessageResumeBodyImpl(
+ byte[] reference,
+ AMQShortString identifier
+ )
+ {
+ _reference = reference;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getReference()
+ {
+ return _reference;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _reference );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _reference );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageResume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageResumeBodyImpl: ");
+ buf.append( "reference=" );
+ buf.append( getReference() == null ? "null" : java.util.Arrays.toString( getReference() ) );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageTransferBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageTransferBodyImpl.java
new file mode 100644
index 0000000000..947334812c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MessageTransferBodyImpl.java
@@ -0,0 +1,384 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class MessageTransferBodyImpl extends AMQMethodBody_0_9 implements MessageTransferBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new MessageTransferBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _destination; // [destination]
+ private final byte _bitfield0; // [redelivered, immediate]
+ private final long _ttl; // [ttl]
+ private final short _priority; // [priority]
+ private final long _timestamp; // [timestamp]
+ private final short _deliveryMode; // [deliveryMode]
+ private final long _expiration; // [expiration]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _messageId; // [messageId]
+ private final AMQShortString _correlationId; // [correlationId]
+ private final AMQShortString _replyTo; // [replyTo]
+ private final AMQShortString _contentType; // [contentType]
+ private final AMQShortString _contentEncoding; // [contentEncoding]
+ private final AMQShortString _userId; // [userId]
+ private final AMQShortString _appId; // [appId]
+ private final AMQShortString _transactionId; // [transactionId]
+ private final byte[] _securityToken; // [securityToken]
+ private final FieldTable _applicationHeaders; // [applicationHeaders]
+ private final Content _body; // [body]
+
+ // Constructor
+ public MessageTransferBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _destination = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _ttl = readLong( buffer );
+ _priority = readUnsignedByte( buffer );
+ _timestamp = readTimestamp( buffer );
+ _deliveryMode = readUnsignedByte( buffer );
+ _expiration = readTimestamp( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _messageId = readAMQShortString( buffer );
+ _correlationId = readAMQShortString( buffer );
+ _replyTo = readAMQShortString( buffer );
+ _contentType = readAMQShortString( buffer );
+ _contentEncoding = readAMQShortString( buffer );
+ _userId = readAMQShortString( buffer );
+ _appId = readAMQShortString( buffer );
+ _transactionId = readAMQShortString( buffer );
+ _securityToken = readBytes( buffer );
+ _applicationHeaders = readFieldTable( buffer );
+ _body = readContent( buffer );
+ }
+
+ public MessageTransferBodyImpl(
+ int ticket,
+ AMQShortString destination,
+ boolean redelivered,
+ boolean immediate,
+ long ttl,
+ short priority,
+ long timestamp,
+ short deliveryMode,
+ long expiration,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString messageId,
+ AMQShortString correlationId,
+ AMQShortString replyTo,
+ AMQShortString contentType,
+ AMQShortString contentEncoding,
+ AMQShortString userId,
+ AMQShortString appId,
+ AMQShortString transactionId,
+ byte[] securityToken,
+ FieldTable applicationHeaders,
+ Content body
+ )
+ {
+ _ticket = ticket;
+ _destination = destination;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ _bitfield0 = bitfield0;
+ _ttl = ttl;
+ _priority = priority;
+ _timestamp = timestamp;
+ _deliveryMode = deliveryMode;
+ _expiration = expiration;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _messageId = messageId;
+ _correlationId = correlationId;
+ _replyTo = replyTo;
+ _contentType = contentType;
+ _contentEncoding = contentEncoding;
+ _userId = userId;
+ _appId = appId;
+ _transactionId = transactionId;
+ _securityToken = securityToken;
+ _applicationHeaders = applicationHeaders;
+ _body = body;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getDestination()
+ {
+ return _destination;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final long getTtl()
+ {
+ return _ttl;
+ }
+ public final short getPriority()
+ {
+ return _priority;
+ }
+ public final long getTimestamp()
+ {
+ return _timestamp;
+ }
+ public final short getDeliveryMode()
+ {
+ return _deliveryMode;
+ }
+ public final long getExpiration()
+ {
+ return _expiration;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getMessageId()
+ {
+ return _messageId;
+ }
+ public final AMQShortString getCorrelationId()
+ {
+ return _correlationId;
+ }
+ public final AMQShortString getReplyTo()
+ {
+ return _replyTo;
+ }
+ public final AMQShortString getContentType()
+ {
+ return _contentType;
+ }
+ public final AMQShortString getContentEncoding()
+ {
+ return _contentEncoding;
+ }
+ public final AMQShortString getUserId()
+ {
+ return _userId;
+ }
+ public final AMQShortString getAppId()
+ {
+ return _appId;
+ }
+ public final AMQShortString getTransactionId()
+ {
+ return _transactionId;
+ }
+ public final byte[] getSecurityToken()
+ {
+ return _securityToken;
+ }
+ public final FieldTable getApplicationHeaders()
+ {
+ return _applicationHeaders;
+ }
+ public final Content getBody()
+ {
+ return _body;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 29;
+ size += getSizeOf( _destination );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _messageId );
+ size += getSizeOf( _correlationId );
+ size += getSizeOf( _replyTo );
+ size += getSizeOf( _contentType );
+ size += getSizeOf( _contentEncoding );
+ size += getSizeOf( _userId );
+ size += getSizeOf( _appId );
+ size += getSizeOf( _transactionId );
+ size += getSizeOf( _securityToken );
+ size += getSizeOf( _applicationHeaders );
+ size += getSizeOf( _body );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _destination );
+ writeBitfield( buffer, _bitfield0 );
+ writeLong( buffer, _ttl );
+ writeUnsignedByte( buffer, _priority );
+ writeTimestamp( buffer, _timestamp );
+ writeUnsignedByte( buffer, _deliveryMode );
+ writeTimestamp( buffer, _expiration );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _messageId );
+ writeAMQShortString( buffer, _correlationId );
+ writeAMQShortString( buffer, _replyTo );
+ writeAMQShortString( buffer, _contentType );
+ writeAMQShortString( buffer, _contentEncoding );
+ writeAMQShortString( buffer, _userId );
+ writeAMQShortString( buffer, _appId );
+ writeAMQShortString( buffer, _transactionId );
+ writeBytes( buffer, _securityToken );
+ writeFieldTable( buffer, _applicationHeaders );
+ writeContent( buffer, _body );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchMessageTransfer(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[MessageTransferBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "destination=" );
+ buf.append( getDestination() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append( ", " );
+ buf.append( "ttl=" );
+ buf.append( getTtl() );
+ buf.append( ", " );
+ buf.append( "priority=" );
+ buf.append( getPriority() );
+ buf.append( ", " );
+ buf.append( "timestamp=" );
+ buf.append( getTimestamp() );
+ buf.append( ", " );
+ buf.append( "deliveryMode=" );
+ buf.append( getDeliveryMode() );
+ buf.append( ", " );
+ buf.append( "expiration=" );
+ buf.append( getExpiration() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "messageId=" );
+ buf.append( getMessageId() );
+ buf.append( ", " );
+ buf.append( "correlationId=" );
+ buf.append( getCorrelationId() );
+ buf.append( ", " );
+ buf.append( "replyTo=" );
+ buf.append( getReplyTo() );
+ buf.append( ", " );
+ buf.append( "contentType=" );
+ buf.append( getContentType() );
+ buf.append( ", " );
+ buf.append( "contentEncoding=" );
+ buf.append( getContentEncoding() );
+ buf.append( ", " );
+ buf.append( "userId=" );
+ buf.append( getUserId() );
+ buf.append( ", " );
+ buf.append( "appId=" );
+ buf.append( getAppId() );
+ buf.append( ", " );
+ buf.append( "transactionId=" );
+ buf.append( getTransactionId() );
+ buf.append( ", " );
+ buf.append( "securityToken=" );
+ buf.append( getSecurityToken() == null ? "null" : java.util.Arrays.toString( getSecurityToken() ) );
+ buf.append( ", " );
+ buf.append( "applicationHeaders=" );
+ buf.append( getApplicationHeaders() );
+ buf.append( ", " );
+ buf.append( "body=" );
+ buf.append( getBody() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodDispatcher_0_9.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodDispatcher_0_9.java
new file mode 100644
index 0000000000..00c81e1180
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodDispatcher_0_9.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.framing.*;
+
+public interface MethodDispatcher_0_9
+ extends MethodDispatcher,
+ ServerMethodDispatcher_0_9,
+ ClientMethodDispatcher_0_9
+{
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodRegistry_0_9.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodRegistry_0_9.java
new file mode 100644
index 0000000000..f0e317fc1e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/MethodRegistry_0_9.java
@@ -0,0 +1,1591 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.protocol.AMQConstant;
+
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+
+import org.apache.qpid.framing.abstraction.ProtocolVersionMethodConverter;
+import org.apache.qpid.codec.MarkableDataInput;
+
+
+public class MethodRegistry_0_9 extends MethodRegistry
+{
+
+ private static final Logger _log = LoggerFactory.getLogger(MethodRegistry.class);
+
+ private ProtocolVersionMethodConverter _protocolVersionConverter = new MethodConverter_0_9();
+
+ private final AMQMethodBodyInstanceFactory[][] _factories = new AMQMethodBodyInstanceFactory[121][];
+
+ public MethodRegistry_0_9()
+ {
+ this(new ProtocolVersion((byte)0,(byte)9));
+ }
+
+ public MethodRegistry_0_9(ProtocolVersion pv)
+ {
+ super(pv);
+
+
+
+ // Register method body instance factories for the Connection class.
+
+ _factories[10] = new AMQMethodBodyInstanceFactory[52];
+
+ _factories[10][10] = ConnectionStartBodyImpl.getFactory();
+ _factories[10][11] = ConnectionStartOkBodyImpl.getFactory();
+ _factories[10][20] = ConnectionSecureBodyImpl.getFactory();
+ _factories[10][21] = ConnectionSecureOkBodyImpl.getFactory();
+ _factories[10][30] = ConnectionTuneBodyImpl.getFactory();
+ _factories[10][31] = ConnectionTuneOkBodyImpl.getFactory();
+ _factories[10][40] = ConnectionOpenBodyImpl.getFactory();
+ _factories[10][41] = ConnectionOpenOkBodyImpl.getFactory();
+ _factories[10][42] = ConnectionRedirectBodyImpl.getFactory();
+ _factories[10][50] = ConnectionCloseBodyImpl.getFactory();
+ _factories[10][51] = ConnectionCloseOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Channel class.
+
+ _factories[20] = new AMQMethodBodyInstanceFactory[81];
+
+ _factories[20][10] = ChannelOpenBodyImpl.getFactory();
+ _factories[20][11] = ChannelOpenOkBodyImpl.getFactory();
+ _factories[20][20] = ChannelFlowBodyImpl.getFactory();
+ _factories[20][21] = ChannelFlowOkBodyImpl.getFactory();
+ _factories[20][40] = ChannelCloseBodyImpl.getFactory();
+ _factories[20][41] = ChannelCloseOkBodyImpl.getFactory();
+ _factories[20][50] = ChannelResumeBodyImpl.getFactory();
+ _factories[20][60] = ChannelPingBodyImpl.getFactory();
+ _factories[20][70] = ChannelPongBodyImpl.getFactory();
+ _factories[20][80] = ChannelOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Access class.
+
+ _factories[30] = new AMQMethodBodyInstanceFactory[12];
+
+ _factories[30][10] = AccessRequestBodyImpl.getFactory();
+ _factories[30][11] = AccessRequestOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Exchange class.
+
+ _factories[40] = new AMQMethodBodyInstanceFactory[24];
+
+ _factories[40][10] = ExchangeDeclareBodyImpl.getFactory();
+ _factories[40][11] = ExchangeDeclareOkBodyImpl.getFactory();
+ _factories[40][20] = ExchangeDeleteBodyImpl.getFactory();
+ _factories[40][21] = ExchangeDeleteOkBodyImpl.getFactory();
+ _factories[40][22] = ExchangeBoundBodyImpl.getFactory();
+ _factories[40][23] = ExchangeBoundOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Queue class.
+
+ _factories[50] = new AMQMethodBodyInstanceFactory[52];
+
+ _factories[50][10] = QueueDeclareBodyImpl.getFactory();
+ _factories[50][11] = QueueDeclareOkBodyImpl.getFactory();
+ _factories[50][20] = QueueBindBodyImpl.getFactory();
+ _factories[50][21] = QueueBindOkBodyImpl.getFactory();
+ _factories[50][30] = QueuePurgeBodyImpl.getFactory();
+ _factories[50][31] = QueuePurgeOkBodyImpl.getFactory();
+ _factories[50][40] = QueueDeleteBodyImpl.getFactory();
+ _factories[50][41] = QueueDeleteOkBodyImpl.getFactory();
+ _factories[50][50] = QueueUnbindBodyImpl.getFactory();
+ _factories[50][51] = QueueUnbindOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Basic class.
+
+ _factories[60] = new AMQMethodBodyInstanceFactory[103];
+
+ _factories[60][10] = BasicQosBodyImpl.getFactory();
+ _factories[60][11] = BasicQosOkBodyImpl.getFactory();
+ _factories[60][20] = BasicConsumeBodyImpl.getFactory();
+ _factories[60][21] = BasicConsumeOkBodyImpl.getFactory();
+ _factories[60][30] = BasicCancelBodyImpl.getFactory();
+ _factories[60][31] = BasicCancelOkBodyImpl.getFactory();
+ _factories[60][40] = BasicPublishBodyImpl.getFactory();
+ _factories[60][50] = BasicReturnBodyImpl.getFactory();
+ _factories[60][60] = BasicDeliverBodyImpl.getFactory();
+ _factories[60][70] = BasicGetBodyImpl.getFactory();
+ _factories[60][71] = BasicGetOkBodyImpl.getFactory();
+ _factories[60][72] = BasicGetEmptyBodyImpl.getFactory();
+ _factories[60][80] = BasicAckBodyImpl.getFactory();
+ _factories[60][90] = BasicRejectBodyImpl.getFactory();
+ _factories[60][100] = BasicRecoverBodyImpl.getFactory();
+ _factories[60][101] = BasicRecoverSyncOkBodyImpl.getFactory();
+ _factories[60][102] = BasicRecoverSyncBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the File class.
+
+ _factories[70] = new AMQMethodBodyInstanceFactory[101];
+
+ _factories[70][10] = FileQosBodyImpl.getFactory();
+ _factories[70][11] = FileQosOkBodyImpl.getFactory();
+ _factories[70][20] = FileConsumeBodyImpl.getFactory();
+ _factories[70][21] = FileConsumeOkBodyImpl.getFactory();
+ _factories[70][30] = FileCancelBodyImpl.getFactory();
+ _factories[70][31] = FileCancelOkBodyImpl.getFactory();
+ _factories[70][40] = FileOpenBodyImpl.getFactory();
+ _factories[70][41] = FileOpenOkBodyImpl.getFactory();
+ _factories[70][50] = FileStageBodyImpl.getFactory();
+ _factories[70][60] = FilePublishBodyImpl.getFactory();
+ _factories[70][70] = FileReturnBodyImpl.getFactory();
+ _factories[70][80] = FileDeliverBodyImpl.getFactory();
+ _factories[70][90] = FileAckBodyImpl.getFactory();
+ _factories[70][100] = FileRejectBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Stream class.
+
+ _factories[80] = new AMQMethodBodyInstanceFactory[61];
+
+ _factories[80][10] = StreamQosBodyImpl.getFactory();
+ _factories[80][11] = StreamQosOkBodyImpl.getFactory();
+ _factories[80][20] = StreamConsumeBodyImpl.getFactory();
+ _factories[80][21] = StreamConsumeOkBodyImpl.getFactory();
+ _factories[80][30] = StreamCancelBodyImpl.getFactory();
+ _factories[80][31] = StreamCancelOkBodyImpl.getFactory();
+ _factories[80][40] = StreamPublishBodyImpl.getFactory();
+ _factories[80][50] = StreamReturnBodyImpl.getFactory();
+ _factories[80][60] = StreamDeliverBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Tx class.
+
+ _factories[90] = new AMQMethodBodyInstanceFactory[32];
+
+ _factories[90][10] = TxSelectBodyImpl.getFactory();
+ _factories[90][11] = TxSelectOkBodyImpl.getFactory();
+ _factories[90][20] = TxCommitBodyImpl.getFactory();
+ _factories[90][21] = TxCommitOkBodyImpl.getFactory();
+ _factories[90][30] = TxRollbackBodyImpl.getFactory();
+ _factories[90][31] = TxRollbackOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Dtx class.
+
+ _factories[100] = new AMQMethodBodyInstanceFactory[22];
+
+ _factories[100][10] = DtxSelectBodyImpl.getFactory();
+ _factories[100][11] = DtxSelectOkBodyImpl.getFactory();
+ _factories[100][20] = DtxStartBodyImpl.getFactory();
+ _factories[100][21] = DtxStartOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Tunnel class.
+
+ _factories[110] = new AMQMethodBodyInstanceFactory[11];
+
+ _factories[110][10] = TunnelRequestBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Message class.
+
+ _factories[120] = new AMQMethodBodyInstanceFactory[531];
+
+ _factories[120][10] = MessageTransferBodyImpl.getFactory();
+ _factories[120][20] = MessageConsumeBodyImpl.getFactory();
+ _factories[120][30] = MessageCancelBodyImpl.getFactory();
+ _factories[120][40] = MessageGetBodyImpl.getFactory();
+ _factories[120][50] = MessageRecoverBodyImpl.getFactory();
+ _factories[120][60] = MessageOpenBodyImpl.getFactory();
+ _factories[120][70] = MessageCloseBodyImpl.getFactory();
+ _factories[120][80] = MessageAppendBodyImpl.getFactory();
+ _factories[120][90] = MessageCheckpointBodyImpl.getFactory();
+ _factories[120][100] = MessageResumeBodyImpl.getFactory();
+ _factories[120][110] = MessageQosBodyImpl.getFactory();
+ _factories[120][500] = MessageOkBodyImpl.getFactory();
+ _factories[120][510] = MessageEmptyBodyImpl.getFactory();
+ _factories[120][520] = MessageRejectBodyImpl.getFactory();
+ _factories[120][530] = MessageOffsetBodyImpl.getFactory();
+ }
+
+ public AMQMethodBody convertToBody(MarkableDataInput in, long size)
+ throws AMQFrameDecodingException, IOException
+ {
+ int classId = in.readUnsignedShort();
+ int methodId = in.readUnsignedShort();
+
+ AMQMethodBodyInstanceFactory bodyFactory;
+ try
+ {
+ bodyFactory = _factories[classId][methodId];
+ }
+ catch(NullPointerException e)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 0-9"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+ catch(IndexOutOfBoundsException e)
+ {
+ if(classId >= _factories.length)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 0-9"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ else
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 0-9"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ }
+
+ if (bodyFactory == null)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 0-9"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+
+ return bodyFactory.newInstance(in, size);
+ }
+
+ public int getMaxClassId()
+ {
+ return 120;
+ }
+
+ public int getMaxMethodId(int classId)
+ {
+ return _factories[classId].length - 1;
+ }
+
+
+
+ public ConnectionStartBody createConnectionStartBody(
+ final short versionMajor,
+ final short versionMinor,
+ final FieldTable serverProperties,
+ final byte[] mechanisms,
+ final byte[] locales
+ )
+ {
+ return new ConnectionStartBodyImpl(
+ versionMajor,
+ versionMinor,
+ serverProperties,
+ mechanisms,
+ locales
+ );
+ }
+
+ public ConnectionStartOkBody createConnectionStartOkBody(
+ final FieldTable clientProperties,
+ final AMQShortString mechanism,
+ final byte[] response,
+ final AMQShortString locale
+ )
+ {
+ return new ConnectionStartOkBodyImpl(
+ clientProperties,
+ mechanism,
+ response,
+ locale
+ );
+ }
+
+ public ConnectionSecureBody createConnectionSecureBody(
+ final byte[] challenge
+ )
+ {
+ return new ConnectionSecureBodyImpl(
+ challenge
+ );
+ }
+
+ public ConnectionSecureOkBody createConnectionSecureOkBody(
+ final byte[] response
+ )
+ {
+ return new ConnectionSecureOkBodyImpl(
+ response
+ );
+ }
+
+ public ConnectionTuneBody createConnectionTuneBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionTuneOkBody createConnectionTuneOkBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneOkBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionOpenBody createConnectionOpenBody(
+ final AMQShortString virtualHost,
+ final AMQShortString capabilities,
+ final boolean insist
+ )
+ {
+ return new ConnectionOpenBodyImpl(
+ virtualHost,
+ capabilities,
+ insist
+ );
+ }
+
+ public ConnectionOpenOkBody createConnectionOpenOkBody(
+ final AMQShortString knownHosts
+ )
+ {
+ return new ConnectionOpenOkBodyImpl(
+ knownHosts
+ );
+ }
+
+ public ConnectionRedirectBody createConnectionRedirectBody(
+ final AMQShortString host,
+ final AMQShortString knownHosts
+ )
+ {
+ return new ConnectionRedirectBodyImpl(
+ host,
+ knownHosts
+ );
+ }
+
+ public ConnectionCloseBody createConnectionCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ConnectionCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ConnectionCloseOkBody createConnectionCloseOkBody(
+ )
+ {
+ return new ConnectionCloseOkBodyImpl(
+ );
+ }
+
+
+
+
+ public ChannelOpenBody createChannelOpenBody(
+ final AMQShortString outOfBand
+ )
+ {
+ return new ChannelOpenBodyImpl(
+ outOfBand
+ );
+ }
+
+ public ChannelOpenOkBody createChannelOpenOkBody(
+ final byte[] channelId
+ )
+ {
+ return new ChannelOpenOkBodyImpl(
+ channelId
+ );
+ }
+
+ public ChannelFlowBody createChannelFlowBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowBodyImpl(
+ active
+ );
+ }
+
+ public ChannelFlowOkBody createChannelFlowOkBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowOkBodyImpl(
+ active
+ );
+ }
+
+ public ChannelCloseBody createChannelCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ChannelCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ChannelCloseOkBody createChannelCloseOkBody(
+ )
+ {
+ return new ChannelCloseOkBodyImpl(
+ );
+ }
+
+ public ChannelResumeBody createChannelResumeBody(
+ final byte[] channelId
+ )
+ {
+ return new ChannelResumeBodyImpl(
+ channelId
+ );
+ }
+
+ public ChannelPingBody createChannelPingBody(
+ )
+ {
+ return new ChannelPingBodyImpl(
+ );
+ }
+
+ public ChannelPongBody createChannelPongBody(
+ )
+ {
+ return new ChannelPongBodyImpl(
+ );
+ }
+
+ public ChannelOkBody createChannelOkBody(
+ )
+ {
+ return new ChannelOkBodyImpl(
+ );
+ }
+
+
+
+
+ public AccessRequestBody createAccessRequestBody(
+ final AMQShortString realm,
+ final boolean exclusive,
+ final boolean passive,
+ final boolean active,
+ final boolean write,
+ final boolean read
+ )
+ {
+ return new AccessRequestBodyImpl(
+ realm,
+ exclusive,
+ passive,
+ active,
+ write,
+ read
+ );
+ }
+
+ public AccessRequestOkBody createAccessRequestOkBody(
+ final int ticket
+ )
+ {
+ return new AccessRequestOkBodyImpl(
+ ticket
+ );
+ }
+
+
+
+
+ public ExchangeDeclareBody createExchangeDeclareBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString type,
+ final boolean passive,
+ final boolean durable,
+ final boolean autoDelete,
+ final boolean internal,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new ExchangeDeclareBodyImpl(
+ ticket,
+ exchange,
+ type,
+ passive,
+ durable,
+ autoDelete,
+ internal,
+ nowait,
+ arguments
+ );
+ }
+
+ public ExchangeDeclareOkBody createExchangeDeclareOkBody(
+ )
+ {
+ return new ExchangeDeclareOkBodyImpl(
+ );
+ }
+
+ public ExchangeDeleteBody createExchangeDeleteBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final boolean ifUnused,
+ final boolean nowait
+ )
+ {
+ return new ExchangeDeleteBodyImpl(
+ ticket,
+ exchange,
+ ifUnused,
+ nowait
+ );
+ }
+
+ public ExchangeDeleteOkBody createExchangeDeleteOkBody(
+ )
+ {
+ return new ExchangeDeleteOkBodyImpl(
+ );
+ }
+
+ public ExchangeBoundBody createExchangeBoundBody(
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString queue
+ )
+ {
+ return new ExchangeBoundBodyImpl(
+ exchange,
+ routingKey,
+ queue
+ );
+ }
+
+ public ExchangeBoundOkBody createExchangeBoundOkBody(
+ final int replyCode,
+ final AMQShortString replyText
+ )
+ {
+ return new ExchangeBoundOkBodyImpl(
+ replyCode,
+ replyText
+ );
+ }
+
+
+
+
+ public QueueDeclareBody createQueueDeclareBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean passive,
+ final boolean durable,
+ final boolean exclusive,
+ final boolean autoDelete,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueDeclareBodyImpl(
+ ticket,
+ queue,
+ passive,
+ durable,
+ exclusive,
+ autoDelete,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueDeclareOkBody createQueueDeclareOkBody(
+ final AMQShortString queue,
+ final long messageCount,
+ final long consumerCount
+ )
+ {
+ return new QueueDeclareOkBodyImpl(
+ queue,
+ messageCount,
+ consumerCount
+ );
+ }
+
+ public QueueBindBody createQueueBindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueBindBodyImpl(
+ ticket,
+ queue,
+ exchange,
+ routingKey,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueBindOkBody createQueueBindOkBody(
+ )
+ {
+ return new QueueBindOkBodyImpl(
+ );
+ }
+
+ public QueuePurgeBody createQueuePurgeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean nowait
+ )
+ {
+ return new QueuePurgeBodyImpl(
+ ticket,
+ queue,
+ nowait
+ );
+ }
+
+ public QueuePurgeOkBody createQueuePurgeOkBody(
+ final long messageCount
+ )
+ {
+ return new QueuePurgeOkBodyImpl(
+ messageCount
+ );
+ }
+
+ public QueueDeleteBody createQueueDeleteBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean ifUnused,
+ final boolean ifEmpty,
+ final boolean nowait
+ )
+ {
+ return new QueueDeleteBodyImpl(
+ ticket,
+ queue,
+ ifUnused,
+ ifEmpty,
+ nowait
+ );
+ }
+
+ public QueueDeleteOkBody createQueueDeleteOkBody(
+ final long messageCount
+ )
+ {
+ return new QueueDeleteOkBodyImpl(
+ messageCount
+ );
+ }
+
+ public QueueUnbindBody createQueueUnbindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final FieldTable arguments
+ )
+ {
+ return new QueueUnbindBodyImpl(
+ ticket,
+ queue,
+ exchange,
+ routingKey,
+ arguments
+ );
+ }
+
+ public QueueUnbindOkBody createQueueUnbindOkBody(
+ )
+ {
+ return new QueueUnbindOkBodyImpl(
+ );
+ }
+
+
+
+
+ public BasicQosBody createBasicQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new BasicQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public BasicQosOkBody createBasicQosOkBody(
+ )
+ {
+ return new BasicQosOkBodyImpl(
+ );
+ }
+
+ public BasicConsumeBody createBasicConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new BasicConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ noAck,
+ exclusive,
+ nowait,
+ arguments
+ );
+ }
+
+ public BasicConsumeOkBody createBasicConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicCancelBody createBasicCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new BasicCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public BasicCancelOkBody createBasicCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicPublishBody createBasicPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ )
+ {
+ return new BasicPublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate
+ );
+ }
+
+ public BasicReturnBody createBasicReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicDeliverBody createBasicDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicGetBody createBasicGetBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean noAck
+ )
+ {
+ return new BasicGetBodyImpl(
+ ticket,
+ queue,
+ noAck
+ );
+ }
+
+ public BasicGetOkBody createBasicGetOkBody(
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final long messageCount
+ )
+ {
+ return new BasicGetOkBodyImpl(
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey,
+ messageCount
+ );
+ }
+
+ public BasicGetEmptyBody createBasicGetEmptyBody(
+ final AMQShortString clusterId
+ )
+ {
+ return new BasicGetEmptyBodyImpl(
+ clusterId
+ );
+ }
+
+ public BasicAckBody createBasicAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ )
+ {
+ return new BasicAckBodyImpl(
+ deliveryTag,
+ multiple
+ );
+ }
+
+ public BasicRejectBody createBasicRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ )
+ {
+ return new BasicRejectBodyImpl(
+ deliveryTag,
+ requeue
+ );
+ }
+
+ public BasicRecoverBody createBasicRecoverBody(
+ final boolean requeue
+ )
+ {
+ return new BasicRecoverBodyImpl(
+ requeue
+ );
+ }
+
+ public BasicRecoverSyncOkBody createBasicRecoverSyncOkBody(
+ )
+ {
+ return new BasicRecoverSyncOkBodyImpl(
+ );
+ }
+
+ public BasicRecoverSyncBody createBasicRecoverSyncBody(
+ final boolean requeue
+ )
+ {
+ return new BasicRecoverSyncBodyImpl(
+ requeue
+ );
+ }
+
+
+
+
+ public FileQosBody createFileQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new FileQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public FileQosOkBody createFileQosOkBody(
+ )
+ {
+ return new FileQosOkBodyImpl(
+ );
+ }
+
+ public FileConsumeBody createFileConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable filter
+ )
+ {
+ return new FileConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ noAck,
+ exclusive,
+ nowait,
+ filter
+ );
+ }
+
+ public FileConsumeOkBody createFileConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new FileConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public FileCancelBody createFileCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new FileCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public FileCancelOkBody createFileCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new FileCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public FileOpenBody createFileOpenBody(
+ final AMQShortString identifier,
+ final long contentSize
+ )
+ {
+ return new FileOpenBodyImpl(
+ identifier,
+ contentSize
+ );
+ }
+
+ public FileOpenOkBody createFileOpenOkBody(
+ final long stagedSize
+ )
+ {
+ return new FileOpenOkBodyImpl(
+ stagedSize
+ );
+ }
+
+ public FileStageBody createFileStageBody(
+ )
+ {
+ return new FileStageBodyImpl(
+ );
+ }
+
+ public FilePublishBody createFilePublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate,
+ final AMQShortString identifier
+ )
+ {
+ return new FilePublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate,
+ identifier
+ );
+ }
+
+ public FileReturnBody createFileReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new FileReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public FileDeliverBody createFileDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString identifier
+ )
+ {
+ return new FileDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey,
+ identifier
+ );
+ }
+
+ public FileAckBody createFileAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ )
+ {
+ return new FileAckBodyImpl(
+ deliveryTag,
+ multiple
+ );
+ }
+
+ public FileRejectBody createFileRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ )
+ {
+ return new FileRejectBodyImpl(
+ deliveryTag,
+ requeue
+ );
+ }
+
+
+
+
+ public StreamQosBody createStreamQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final long consumeRate,
+ final boolean global
+ )
+ {
+ return new StreamQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ consumeRate,
+ global
+ );
+ }
+
+ public StreamQosOkBody createStreamQosOkBody(
+ )
+ {
+ return new StreamQosOkBodyImpl(
+ );
+ }
+
+ public StreamConsumeBody createStreamConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable filter
+ )
+ {
+ return new StreamConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ exclusive,
+ nowait,
+ filter
+ );
+ }
+
+ public StreamConsumeOkBody createStreamConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new StreamConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public StreamCancelBody createStreamCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new StreamCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public StreamCancelOkBody createStreamCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new StreamCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public StreamPublishBody createStreamPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ )
+ {
+ return new StreamPublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate
+ );
+ }
+
+ public StreamReturnBody createStreamReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new StreamReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public StreamDeliverBody createStreamDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final AMQShortString exchange,
+ final AMQShortString queue
+ )
+ {
+ return new StreamDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ exchange,
+ queue
+ );
+ }
+
+
+
+
+ public TxSelectBody createTxSelectBody(
+ )
+ {
+ return new TxSelectBodyImpl(
+ );
+ }
+
+ public TxSelectOkBody createTxSelectOkBody(
+ )
+ {
+ return new TxSelectOkBodyImpl(
+ );
+ }
+
+ public TxCommitBody createTxCommitBody(
+ )
+ {
+ return new TxCommitBodyImpl(
+ );
+ }
+
+ public TxCommitOkBody createTxCommitOkBody(
+ )
+ {
+ return new TxCommitOkBodyImpl(
+ );
+ }
+
+ public TxRollbackBody createTxRollbackBody(
+ )
+ {
+ return new TxRollbackBodyImpl(
+ );
+ }
+
+ public TxRollbackOkBody createTxRollbackOkBody(
+ )
+ {
+ return new TxRollbackOkBodyImpl(
+ );
+ }
+
+
+
+
+ public DtxSelectBody createDtxSelectBody(
+ )
+ {
+ return new DtxSelectBodyImpl(
+ );
+ }
+
+ public DtxSelectOkBody createDtxSelectOkBody(
+ )
+ {
+ return new DtxSelectOkBodyImpl(
+ );
+ }
+
+ public DtxStartBody createDtxStartBody(
+ final AMQShortString dtxIdentifier
+ )
+ {
+ return new DtxStartBodyImpl(
+ dtxIdentifier
+ );
+ }
+
+ public DtxStartOkBody createDtxStartOkBody(
+ )
+ {
+ return new DtxStartOkBodyImpl(
+ );
+ }
+
+
+
+
+ public TunnelRequestBody createTunnelRequestBody(
+ final FieldTable metaData
+ )
+ {
+ return new TunnelRequestBodyImpl(
+ metaData
+ );
+ }
+
+
+
+
+ public MessageTransferBody createMessageTransferBody(
+ final int ticket,
+ final AMQShortString destination,
+ final boolean redelivered,
+ final boolean immediate,
+ final long ttl,
+ final short priority,
+ final long timestamp,
+ final short deliveryMode,
+ final long expiration,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString messageId,
+ final AMQShortString correlationId,
+ final AMQShortString replyTo,
+ final AMQShortString contentType,
+ final AMQShortString contentEncoding,
+ final AMQShortString userId,
+ final AMQShortString appId,
+ final AMQShortString transactionId,
+ final byte[] securityToken,
+ final FieldTable applicationHeaders,
+ final Content body
+ )
+ {
+ return new MessageTransferBodyImpl(
+ ticket,
+ destination,
+ redelivered,
+ immediate,
+ ttl,
+ priority,
+ timestamp,
+ deliveryMode,
+ expiration,
+ exchange,
+ routingKey,
+ messageId,
+ correlationId,
+ replyTo,
+ contentType,
+ contentEncoding,
+ userId,
+ appId,
+ transactionId,
+ securityToken,
+ applicationHeaders,
+ body
+ );
+ }
+
+ public MessageConsumeBody createMessageConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString destination,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final FieldTable filter
+ )
+ {
+ return new MessageConsumeBodyImpl(
+ ticket,
+ queue,
+ destination,
+ noLocal,
+ noAck,
+ exclusive,
+ filter
+ );
+ }
+
+ public MessageCancelBody createMessageCancelBody(
+ final AMQShortString destination
+ )
+ {
+ return new MessageCancelBodyImpl(
+ destination
+ );
+ }
+
+ public MessageGetBody createMessageGetBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString destination,
+ final boolean noAck
+ )
+ {
+ return new MessageGetBodyImpl(
+ ticket,
+ queue,
+ destination,
+ noAck
+ );
+ }
+
+ public MessageRecoverBody createMessageRecoverBody(
+ final boolean requeue
+ )
+ {
+ return new MessageRecoverBodyImpl(
+ requeue
+ );
+ }
+
+ public MessageOpenBody createMessageOpenBody(
+ final byte[] reference
+ )
+ {
+ return new MessageOpenBodyImpl(
+ reference
+ );
+ }
+
+ public MessageCloseBody createMessageCloseBody(
+ final byte[] reference
+ )
+ {
+ return new MessageCloseBodyImpl(
+ reference
+ );
+ }
+
+ public MessageAppendBody createMessageAppendBody(
+ final byte[] reference,
+ final byte[] bytes
+ )
+ {
+ return new MessageAppendBodyImpl(
+ reference,
+ bytes
+ );
+ }
+
+ public MessageCheckpointBody createMessageCheckpointBody(
+ final byte[] reference,
+ final AMQShortString identifier
+ )
+ {
+ return new MessageCheckpointBodyImpl(
+ reference,
+ identifier
+ );
+ }
+
+ public MessageResumeBody createMessageResumeBody(
+ final byte[] reference,
+ final AMQShortString identifier
+ )
+ {
+ return new MessageResumeBodyImpl(
+ reference,
+ identifier
+ );
+ }
+
+ public MessageQosBody createMessageQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new MessageQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public MessageOkBody createMessageOkBody(
+ )
+ {
+ return new MessageOkBodyImpl(
+ );
+ }
+
+ public MessageEmptyBody createMessageEmptyBody(
+ )
+ {
+ return new MessageEmptyBodyImpl(
+ );
+ }
+
+ public MessageRejectBody createMessageRejectBody(
+ final int code,
+ final AMQShortString text
+ )
+ {
+ return new MessageRejectBodyImpl(
+ code,
+ text
+ );
+ }
+
+ public MessageOffsetBody createMessageOffsetBody(
+ final long value
+ )
+ {
+ return new MessageOffsetBodyImpl(
+ value
+ );
+ }
+
+
+
+ public ProtocolVersionMethodConverter getProtocolVersionMethodConverter()
+ {
+ return _protocolVersionConverter;
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindBodyImpl.java
new file mode 100644
index 0000000000..989a6d4877
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindBodyImpl extends AMQMethodBody_0_9 implements QueueBindBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueBindBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueBindBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueBind(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindOkBodyImpl.java
new file mode 100644
index 0000000000..1469912b2b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueBindOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindOkBodyImpl extends AMQMethodBody_0_9 implements QueueBindOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public QueueBindOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public QueueBindOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueBindOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareBodyImpl.java
new file mode 100644
index 0000000000..7b2926f32f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareBodyImpl extends AMQMethodBody_0_9 implements QueueDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [passive, durable, exclusive, autoDelete, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueDeclareBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean passive,
+ boolean durable,
+ boolean exclusive,
+ boolean autoDelete,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..1c76725d2b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeclareOkBodyImpl.java
@@ -0,0 +1,136 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareOkBodyImpl extends AMQMethodBody_0_9 implements QueueDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final AMQShortString _queue; // [queue]
+ private final long _messageCount; // [messageCount]
+ private final long _consumerCount; // [consumerCount]
+
+ // Constructor
+ public QueueDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _queue = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ _consumerCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeclareOkBodyImpl(
+ AMQShortString queue,
+ long messageCount,
+ long consumerCount
+ )
+ {
+ _queue = queue;
+ _messageCount = messageCount;
+ _consumerCount = consumerCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+ public final long getConsumerCount()
+ {
+ return _consumerCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _queue );
+ writeUnsignedInteger( buffer, _messageCount );
+ writeUnsignedInteger( buffer, _consumerCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareOkBodyImpl: ");
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append( ", " );
+ buf.append( "consumerCount=" );
+ buf.append( getConsumerCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteBodyImpl.java
new file mode 100644
index 0000000000..ea48a1d24a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteBodyImpl extends AMQMethodBody_0_9 implements QueueDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [ifUnused, ifEmpty, nowait]
+
+ // Constructor
+ public QueueDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueueDeleteBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean ifUnused,
+ boolean ifEmpty,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( ifEmpty )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getIfEmpty()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "ifEmpty=" );
+ buf.append( getIfEmpty() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..acc7a59887
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueDeleteOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteOkBodyImpl extends AMQMethodBody_0_9 implements QueueDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueueDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeleteOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeBodyImpl.java
new file mode 100644
index 0000000000..8a1a4e206c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeBodyImpl extends AMQMethodBody_0_9 implements QueuePurgeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public QueuePurgeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueuePurgeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueuePurge(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeOkBodyImpl.java
new file mode 100644
index 0000000000..db50a822f6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueuePurgeOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeOkBodyImpl extends AMQMethodBody_0_9 implements QueuePurgeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueuePurgeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueuePurgeOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueuePurgeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindBodyImpl.java
new file mode 100644
index 0000000000..fd5bb7b953
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindBodyImpl.java
@@ -0,0 +1,163 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueUnbindBodyImpl extends AMQMethodBody_0_9 implements QueueUnbindBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueUnbindBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueUnbindBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueUnbindBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueUnbind(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueUnbindBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindOkBodyImpl.java
new file mode 100644
index 0000000000..03544b17d6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/QueueUnbindOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueUnbindOkBodyImpl extends AMQMethodBody_0_9 implements QueueUnbindOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueUnbindOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 51;
+
+ // Fields declared in specification
+
+ // Constructor
+ public QueueUnbindOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public QueueUnbindOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchQueueUnbindOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueUnbindOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ServerMethodDispatcher_0_9.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ServerMethodDispatcher_0_9.java
new file mode 100644
index 0000000000..4100e7a031
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/ServerMethodDispatcher_0_9.java
@@ -0,0 +1,105 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+
+public interface ServerMethodDispatcher_0_9 extends ServerMethodDispatcher
+{
+
+ public boolean dispatchAccessRequest(AccessRequestBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicAck(BasicAckBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancel(BasicCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsume(BasicConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGet(BasicGetBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicPublish(BasicPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQos(BasicQosBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecover(BasicRecoverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecoverSync(BasicRecoverSyncBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReject(BasicRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOk(ChannelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpen(ChannelOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelPing(ChannelPingBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelPong(ChannelPongBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelResume(ChannelResumeBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpen(ConnectionOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecureOk(ConnectionSecureOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStartOk(ConnectionStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTuneOk(ConnectionTuneOkBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxSelect(DtxSelectBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxStart(DtxStartBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBound(ExchangeBoundBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclare(ExchangeDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDelete(ExchangeDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchFileAck(FileAckBody body, int channelId) throws AMQException;
+ public boolean dispatchFileCancel(FileCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchFileConsume(FileConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpen(FileOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpenOk(FileOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFilePublish(FilePublishBody body, int channelId) throws AMQException;
+ public boolean dispatchFileQos(FileQosBody body, int channelId) throws AMQException;
+ public boolean dispatchFileReject(FileRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchFileStage(FileStageBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageAppend(MessageAppendBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageCancel(MessageCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageCheckpoint(MessageCheckpointBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageClose(MessageCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageConsume(MessageConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageEmpty(MessageEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageGet(MessageGetBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOffset(MessageOffsetBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOk(MessageOkBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageOpen(MessageOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageQos(MessageQosBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageRecover(MessageRecoverBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageReject(MessageRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageResume(MessageResumeBody body, int channelId) throws AMQException;
+ public boolean dispatchMessageTransfer(MessageTransferBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBind(QueueBindBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclare(QueueDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDelete(QueueDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurge(QueuePurgeBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueUnbind(QueueUnbindBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamCancel(StreamCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamConsume(StreamConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamPublish(StreamPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamQos(StreamQosBody body, int channelId) throws AMQException;
+ public boolean dispatchTunnelRequest(TunnelRequestBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommit(TxCommitBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollback(TxRollbackBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelect(TxSelectBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelBodyImpl.java
new file mode 100644
index 0000000000..81ec1102f5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamCancelBodyImpl extends AMQMethodBody_0_9 implements StreamCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public StreamCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelOkBodyImpl.java
new file mode 100644
index 0000000000..ec9676d782
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamCancelOkBodyImpl extends AMQMethodBody_0_9 implements StreamCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public StreamCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public StreamCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeBodyImpl.java
new file mode 100644
index 0000000000..ff4712d091
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeBodyImpl.java
@@ -0,0 +1,194 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamConsumeBodyImpl extends AMQMethodBody_0_9 implements StreamConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, exclusive, nowait]
+ private final FieldTable _filter; // [filter]
+
+ // Constructor
+ public StreamConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _filter = readFieldTable( buffer );
+ }
+
+ public StreamConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean exclusive,
+ boolean nowait,
+ FieldTable filter
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ _bitfield0 = bitfield0;
+ _filter = filter;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final FieldTable getFilter()
+ {
+ return _filter;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _filter );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _filter );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "filter=" );
+ buf.append( getFilter() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..cca83758e4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamConsumeOkBodyImpl extends AMQMethodBody_0_9 implements StreamConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public StreamConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public StreamConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamDeliverBodyImpl.java
new file mode 100644
index 0000000000..87e341ee5c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamDeliverBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamDeliverBodyImpl extends AMQMethodBody_0_9 implements StreamDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _queue; // [queue]
+
+ // Constructor
+ public StreamDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _exchange = readAMQShortString( buffer );
+ _queue = readAMQShortString( buffer );
+ }
+
+ public StreamDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ AMQShortString exchange,
+ AMQShortString queue
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ _exchange = exchange;
+ _queue = queue;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _queue );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamPublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamPublishBodyImpl.java
new file mode 100644
index 0000000000..59161fe291
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamPublishBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamPublishBodyImpl extends AMQMethodBody_0_9 implements StreamPublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamPublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+
+ // Constructor
+ public StreamPublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamPublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamPublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamPublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosBodyImpl.java
new file mode 100644
index 0000000000..b9413d3ef2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosBodyImpl.java
@@ -0,0 +1,152 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamQosBodyImpl extends AMQMethodBody_0_9 implements StreamQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final long _consumeRate; // [consumeRate]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public StreamQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _consumeRate = readUnsignedInteger( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ long consumeRate,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ _consumeRate = consumeRate;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final long getConsumeRate()
+ {
+ return _consumeRate;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 11;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeUnsignedInteger( buffer, _consumeRate );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "consumeRate=" );
+ buf.append( getConsumeRate() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosOkBodyImpl.java
new file mode 100644
index 0000000000..a5119c7f6d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamQosOkBodyImpl extends AMQMethodBody_0_9 implements StreamQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public StreamQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public StreamQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamReturnBodyImpl.java
new file mode 100644
index 0000000000..bb60ea982e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/StreamReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamReturnBodyImpl extends AMQMethodBody_0_9 implements StreamReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public StreamReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public StreamReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchStreamReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TunnelRequestBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TunnelRequestBodyImpl.java
new file mode 100644
index 0000000000..fae6e1c3b9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TunnelRequestBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TunnelRequestBodyImpl extends AMQMethodBody_0_9 implements TunnelRequestBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TunnelRequestBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 110;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final FieldTable _metaData; // [metaData]
+
+ // Constructor
+ public TunnelRequestBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _metaData = readFieldTable( buffer );
+ }
+
+ public TunnelRequestBodyImpl(
+ FieldTable metaData
+ )
+ {
+ _metaData = metaData;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getMetaData()
+ {
+ return _metaData;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _metaData );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _metaData );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTunnelRequest(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TunnelRequestBodyImpl: ");
+ buf.append( "metaData=" );
+ buf.append( getMetaData() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitBodyImpl.java
new file mode 100644
index 0000000000..9663cc86f5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitBodyImpl extends AMQMethodBody_0_9 implements TxCommitBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxCommit(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitOkBodyImpl.java
new file mode 100644
index 0000000000..fa009903b9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxCommitOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitOkBodyImpl extends AMQMethodBody_0_9 implements TxCommitOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxCommitOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackBodyImpl.java
new file mode 100644
index 0000000000..c143c34081
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackBodyImpl extends AMQMethodBody_0_9 implements TxRollbackBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxRollback(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackOkBodyImpl.java
new file mode 100644
index 0000000000..a5238b8804
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxRollbackOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackOkBodyImpl extends AMQMethodBody_0_9 implements TxRollbackOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxRollbackOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectBodyImpl.java
new file mode 100644
index 0000000000..9a43987fa2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectBodyImpl extends AMQMethodBody_0_9 implements TxSelectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxSelect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectOkBodyImpl.java
new file mode 100644
index 0000000000..c06bf4c501
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_9/TxSelectOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-9
+ */
+
+package org.apache.qpid.framing.amqp_0_9;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectOkBodyImpl extends AMQMethodBody_0_9 implements TxSelectOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_9)dispatcher).dispatchTxSelectOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicAckBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicAckBodyImpl.java
new file mode 100644
index 0000000000..059ae8fab8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicAckBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicAckBodyImpl extends AMQMethodBody_0_91 implements BasicAckBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicAckBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [multiple]
+
+ // Constructor
+ public BasicAckBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicAckBodyImpl(
+ long deliveryTag,
+ boolean multiple
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( multiple )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getMultiple()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicAck(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicAckBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "multiple=" );
+ buf.append( getMultiple() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelBodyImpl.java
new file mode 100644
index 0000000000..08a07960ac
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelBodyImpl extends AMQMethodBody_0_91 implements BasicCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public BasicCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelOkBodyImpl.java
new file mode 100644
index 0000000000..380fa70a18
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelOkBodyImpl extends AMQMethodBody_0_91 implements BasicCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeBodyImpl.java
new file mode 100644
index 0000000000..b299c5c0d4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeBodyImpl extends AMQMethodBody_0_91 implements BasicConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public BasicConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public BasicConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..2241370c75
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeOkBodyImpl extends AMQMethodBody_0_91 implements BasicConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicDeliverBodyImpl.java
new file mode 100644
index 0000000000..a1a9bf6113
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicDeliverBodyImpl.java
@@ -0,0 +1,168 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicDeliverBodyImpl extends AMQMethodBody_0_91 implements BasicDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetBodyImpl.java
new file mode 100644
index 0000000000..2f9ca99673
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetBodyImpl extends AMQMethodBody_0_91 implements BasicGetBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [noAck]
+
+ // Constructor
+ public BasicGetBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicGetBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean noAck
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicGet(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetEmptyBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetEmptyBodyImpl.java
new file mode 100644
index 0000000000..2f40867d71
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetEmptyBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetEmptyBodyImpl extends AMQMethodBody_0_91 implements BasicGetEmptyBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetEmptyBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 72;
+
+ // Fields declared in specification
+ private final AMQShortString _clusterId; // [clusterId]
+
+ // Constructor
+ public BasicGetEmptyBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clusterId = readAMQShortString( buffer );
+ }
+
+ public BasicGetEmptyBodyImpl(
+ AMQShortString clusterId
+ )
+ {
+ _clusterId = clusterId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getClusterId()
+ {
+ return _clusterId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clusterId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _clusterId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicGetEmpty(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetEmptyBodyImpl: ");
+ buf.append( "clusterId=" );
+ buf.append( getClusterId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetOkBodyImpl.java
new file mode 100644
index 0000000000..9666f447f1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicGetOkBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetOkBodyImpl extends AMQMethodBody_0_91 implements BasicGetOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 71;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public BasicGetOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public BasicGetOkBodyImpl(
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ long messageCount
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 13;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicGetOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetOkBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicPublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicPublishBodyImpl.java
new file mode 100644
index 0000000000..b347420128
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicPublishBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicPublishBodyImpl extends AMQMethodBody_0_91 implements BasicPublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicPublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+
+ // Constructor
+ public BasicPublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicPublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicPublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicPublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosBodyImpl.java
new file mode 100644
index 0000000000..00372b9c49
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosBodyImpl extends AMQMethodBody_0_91 implements BasicQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public BasicQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosOkBodyImpl.java
new file mode 100644
index 0000000000..a36b2e6d66
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosOkBodyImpl extends AMQMethodBody_0_91 implements BasicQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverBodyImpl.java
new file mode 100644
index 0000000000..e21c382a24
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverBodyImpl extends AMQMethodBody_0_91 implements BasicRecoverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRecoverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRecoverBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicRecover(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncBodyImpl.java
new file mode 100644
index 0000000000..c0679cf939
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverSyncBodyImpl extends AMQMethodBody_0_91 implements BasicRecoverSyncBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverSyncBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 110;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRecoverSyncBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRecoverSyncBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicRecoverSync(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverSyncBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncOkBodyImpl.java
new file mode 100644
index 0000000000..a75d344831
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRecoverSyncOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverSyncOkBodyImpl extends AMQMethodBody_0_91 implements BasicRecoverSyncOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverSyncOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 111;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicRecoverSyncOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicRecoverSyncOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicRecoverSyncOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverSyncOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRejectBodyImpl.java
new file mode 100644
index 0000000000..b5b549d4a9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicRejectBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRejectBodyImpl extends AMQMethodBody_0_91 implements BasicRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRejectBodyImpl(
+ long deliveryTag,
+ boolean requeue
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRejectBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicReturnBodyImpl.java
new file mode 100644
index 0000000000..26ba2f8b95
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/BasicReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicReturnBodyImpl extends AMQMethodBody_0_91 implements BasicReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchBasicReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseBodyImpl.java
new file mode 100644
index 0000000000..77f0dc2c9a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseBodyImpl extends AMQMethodBody_0_91 implements ChannelCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ChannelCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ChannelCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseOkBodyImpl.java
new file mode 100644
index 0000000000..91dd7b998a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseOkBodyImpl extends AMQMethodBody_0_91 implements ChannelCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowBodyImpl.java
new file mode 100644
index 0000000000..ce22049d31
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowBodyImpl extends AMQMethodBody_0_91 implements ChannelFlowBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelFlow(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowOkBodyImpl.java
new file mode 100644
index 0000000000..427acd045c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelFlowOkBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowOkBodyImpl extends AMQMethodBody_0_91 implements ChannelFlowOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowOkBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelFlowOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowOkBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenBodyImpl.java
new file mode 100644
index 0000000000..e204006fb3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenBodyImpl extends AMQMethodBody_0_91 implements ChannelOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final AMQShortString _outOfBand; // [outOfBand]
+
+ // Constructor
+ public ChannelOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _outOfBand = readAMQShortString( buffer );
+ }
+
+ public ChannelOpenBodyImpl(
+ AMQShortString outOfBand
+ )
+ {
+ _outOfBand = outOfBand;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getOutOfBand()
+ {
+ return _outOfBand;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _outOfBand );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _outOfBand );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenBodyImpl: ");
+ buf.append( "outOfBand=" );
+ buf.append( getOutOfBand() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenOkBodyImpl.java
new file mode 100644
index 0000000000..d891cb3374
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ChannelOpenOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenOkBodyImpl extends AMQMethodBody_0_91 implements ChannelOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final byte[] _channelId; // [channelId]
+
+ // Constructor
+ public ChannelOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelId = readBytes( buffer );
+ }
+
+ public ChannelOpenOkBodyImpl(
+ byte[] channelId
+ )
+ {
+ _channelId = channelId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChannelId()
+ {
+ return _channelId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _channelId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _channelId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchChannelOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenOkBodyImpl: ");
+ buf.append( "channelId=" );
+ buf.append( getChannelId() == null ? "null" : java.util.Arrays.toString( getChannelId() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ClientMethodDispatcher_0_91.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ClientMethodDispatcher_0_91.java
new file mode 100644
index 0000000000..e60a4b6d0c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ClientMethodDispatcher_0_91.java
@@ -0,0 +1,67 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+public interface ClientMethodDispatcher_0_91 extends ClientMethodDispatcher
+{
+
+ public boolean dispatchBasicCancelOk(BasicCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsumeOk(BasicConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicDeliver(BasicDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetEmpty(BasicGetEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetOk(BasicGetOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQosOk(BasicQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecoverSyncOk(BasicRecoverSyncOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReturn(BasicReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpenOk(ChannelOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpenOk(ConnectionOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecure(ConnectionSecureBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStart(ConnectionStartBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTune(ConnectionTuneBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBoundOk(ExchangeBoundOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclareOk(ExchangeDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeleteOk(ExchangeDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBindOk(QueueBindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclareOk(QueueDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeleteOk(QueueDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurgeOk(QueuePurgeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueUnbindOk(QueueUnbindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommitOk(TxCommitOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollbackOk(TxRollbackOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelectOk(TxSelectOkBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseBodyImpl.java
new file mode 100644
index 0000000000..92c78ac484
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseBodyImpl extends AMQMethodBody_0_91 implements ConnectionCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ConnectionCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ConnectionCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseOkBodyImpl.java
new file mode 100644
index 0000000000..8bf23cb8fb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseOkBodyImpl extends AMQMethodBody_0_91 implements ConnectionCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 51;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ConnectionCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ConnectionCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenBodyImpl.java
new file mode 100644
index 0000000000..20284f6462
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenBodyImpl.java
@@ -0,0 +1,142 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenBodyImpl extends AMQMethodBody_0_91 implements ConnectionOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final AMQShortString _virtualHost; // [virtualHost]
+ private final AMQShortString _capabilities; // [capabilities]
+ private final byte _bitfield0; // [insist]
+
+ // Constructor
+ public ConnectionOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _virtualHost = readAMQShortString( buffer );
+ _capabilities = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ConnectionOpenBodyImpl(
+ AMQShortString virtualHost,
+ AMQShortString capabilities,
+ boolean insist
+ )
+ {
+ _virtualHost = virtualHost;
+ _capabilities = capabilities;
+ byte bitfield0 = (byte)0;
+ if( insist )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getVirtualHost()
+ {
+ return _virtualHost;
+ }
+ public final AMQShortString getCapabilities()
+ {
+ return _capabilities;
+ }
+ public final boolean getInsist()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _virtualHost );
+ size += getSizeOf( _capabilities );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _virtualHost );
+ writeAMQShortString( buffer, _capabilities );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenBodyImpl: ");
+ buf.append( "virtualHost=" );
+ buf.append( getVirtualHost() );
+ buf.append( ", " );
+ buf.append( "capabilities=" );
+ buf.append( getCapabilities() );
+ buf.append( ", " );
+ buf.append( "insist=" );
+ buf.append( getInsist() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenOkBodyImpl.java
new file mode 100644
index 0000000000..346b26f039
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionOpenOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenOkBodyImpl extends AMQMethodBody_0_91 implements ConnectionOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final AMQShortString _knownHosts; // [knownHosts]
+
+ // Constructor
+ public ConnectionOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _knownHosts = readAMQShortString( buffer );
+ }
+
+ public ConnectionOpenOkBodyImpl(
+ AMQShortString knownHosts
+ )
+ {
+ _knownHosts = knownHosts;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getKnownHosts()
+ {
+ return _knownHosts;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _knownHosts );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _knownHosts );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenOkBodyImpl: ");
+ buf.append( "knownHosts=" );
+ buf.append( getKnownHosts() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureBodyImpl.java
new file mode 100644
index 0000000000..1573403c41
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureBodyImpl extends AMQMethodBody_0_91 implements ConnectionSecureBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte[] _challenge; // [challenge]
+
+ // Constructor
+ public ConnectionSecureBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _challenge = readBytes( buffer );
+ }
+
+ public ConnectionSecureBodyImpl(
+ byte[] challenge
+ )
+ {
+ _challenge = challenge;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChallenge()
+ {
+ return _challenge;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _challenge );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _challenge );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionSecure(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureBodyImpl: ");
+ buf.append( "challenge=" );
+ buf.append( getChallenge() == null ? "null" : java.util.Arrays.toString( getChallenge() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureOkBodyImpl.java
new file mode 100644
index 0000000000..bf44d51a00
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionSecureOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureOkBodyImpl extends AMQMethodBody_0_91 implements ConnectionSecureOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte[] _response; // [response]
+
+ // Constructor
+ public ConnectionSecureOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _response = readBytes( buffer );
+ }
+
+ public ConnectionSecureOkBodyImpl(
+ byte[] response
+ )
+ {
+ _response = response;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _response );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _response );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionSecureOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureOkBodyImpl: ");
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartBodyImpl.java
new file mode 100644
index 0000000000..b849c4fcfb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartBodyImpl.java
@@ -0,0 +1,162 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartBodyImpl extends AMQMethodBody_0_91 implements ConnectionStartBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final short _versionMajor; // [versionMajor]
+ private final short _versionMinor; // [versionMinor]
+ private final FieldTable _serverProperties; // [serverProperties]
+ private final byte[] _mechanisms; // [mechanisms]
+ private final byte[] _locales; // [locales]
+
+ // Constructor
+ public ConnectionStartBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _versionMajor = readUnsignedByte( buffer );
+ _versionMinor = readUnsignedByte( buffer );
+ _serverProperties = readFieldTable( buffer );
+ _mechanisms = readBytes( buffer );
+ _locales = readBytes( buffer );
+ }
+
+ public ConnectionStartBodyImpl(
+ short versionMajor,
+ short versionMinor,
+ FieldTable serverProperties,
+ byte[] mechanisms,
+ byte[] locales
+ )
+ {
+ _versionMajor = versionMajor;
+ _versionMinor = versionMinor;
+ _serverProperties = serverProperties;
+ _mechanisms = mechanisms;
+ _locales = locales;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final short getVersionMajor()
+ {
+ return _versionMajor;
+ }
+ public final short getVersionMinor()
+ {
+ return _versionMinor;
+ }
+ public final FieldTable getServerProperties()
+ {
+ return _serverProperties;
+ }
+ public final byte[] getMechanisms()
+ {
+ return _mechanisms;
+ }
+ public final byte[] getLocales()
+ {
+ return _locales;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _serverProperties );
+ size += getSizeOf( _mechanisms );
+ size += getSizeOf( _locales );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedByte( buffer, _versionMajor );
+ writeUnsignedByte( buffer, _versionMinor );
+ writeFieldTable( buffer, _serverProperties );
+ writeBytes( buffer, _mechanisms );
+ writeBytes( buffer, _locales );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionStart(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartBodyImpl: ");
+ buf.append( "versionMajor=" );
+ buf.append( getVersionMajor() );
+ buf.append( ", " );
+ buf.append( "versionMinor=" );
+ buf.append( getVersionMinor() );
+ buf.append( ", " );
+ buf.append( "serverProperties=" );
+ buf.append( getServerProperties() );
+ buf.append( ", " );
+ buf.append( "mechanisms=" );
+ buf.append( getMechanisms() == null ? "null" : java.util.Arrays.toString( getMechanisms() ) );
+ buf.append( ", " );
+ buf.append( "locales=" );
+ buf.append( getLocales() == null ? "null" : java.util.Arrays.toString( getLocales() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartOkBodyImpl.java
new file mode 100644
index 0000000000..59bbf147e3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionStartOkBodyImpl.java
@@ -0,0 +1,151 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartOkBodyImpl extends AMQMethodBody_0_91 implements ConnectionStartOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final FieldTable _clientProperties; // [clientProperties]
+ private final AMQShortString _mechanism; // [mechanism]
+ private final byte[] _response; // [response]
+ private final AMQShortString _locale; // [locale]
+
+ // Constructor
+ public ConnectionStartOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clientProperties = readFieldTable( buffer );
+ _mechanism = readAMQShortString( buffer );
+ _response = readBytes( buffer );
+ _locale = readAMQShortString( buffer );
+ }
+
+ public ConnectionStartOkBodyImpl(
+ FieldTable clientProperties,
+ AMQShortString mechanism,
+ byte[] response,
+ AMQShortString locale
+ )
+ {
+ _clientProperties = clientProperties;
+ _mechanism = mechanism;
+ _response = response;
+ _locale = locale;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getClientProperties()
+ {
+ return _clientProperties;
+ }
+ public final AMQShortString getMechanism()
+ {
+ return _mechanism;
+ }
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+ public final AMQShortString getLocale()
+ {
+ return _locale;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clientProperties );
+ size += getSizeOf( _mechanism );
+ size += getSizeOf( _response );
+ size += getSizeOf( _locale );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _clientProperties );
+ writeAMQShortString( buffer, _mechanism );
+ writeBytes( buffer, _response );
+ writeAMQShortString( buffer, _locale );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionStartOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartOkBodyImpl: ");
+ buf.append( "clientProperties=" );
+ buf.append( getClientProperties() );
+ buf.append( ", " );
+ buf.append( "mechanism=" );
+ buf.append( getMechanism() );
+ buf.append( ", " );
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append( ", " );
+ buf.append( "locale=" );
+ buf.append( getLocale() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneBodyImpl.java
new file mode 100644
index 0000000000..2c98b56858
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneBodyImpl extends AMQMethodBody_0_91 implements ConnectionTuneBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionTune(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneOkBodyImpl.java
new file mode 100644
index 0000000000..8a6a6aac3a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ConnectionTuneOkBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneOkBodyImpl extends AMQMethodBody_0_91 implements ConnectionTuneOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneOkBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchConnectionTuneOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneOkBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundBodyImpl.java
new file mode 100644
index 0000000000..69e70d7477
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundBodyImpl.java
@@ -0,0 +1,138 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundBodyImpl extends AMQMethodBody_0_91 implements ExchangeBoundBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 22;
+
+ // Fields declared in specification
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _queue; // [queue]
+
+ // Constructor
+ public ExchangeBoundBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _queue = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundBodyImpl(
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString queue
+ )
+ {
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _queue = queue;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _queue );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeBound(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundBodyImpl: ");
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundOkBodyImpl.java
new file mode 100644
index 0000000000..c21838081f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeBoundOkBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundOkBodyImpl extends AMQMethodBody_0_91 implements ExchangeBoundOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 23;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+
+ // Constructor
+ public ExchangeBoundOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundOkBodyImpl(
+ int replyCode,
+ AMQShortString replyText
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeBoundOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundOkBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareBodyImpl.java
new file mode 100644
index 0000000000..68b9ce084d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareBodyImpl.java
@@ -0,0 +1,220 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareBodyImpl extends AMQMethodBody_0_91 implements ExchangeDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _type; // [type]
+ private final byte _bitfield0; // [passive, durable, autoDelete, internal, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public ExchangeDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _type = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public ExchangeDeclareBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString type,
+ boolean passive,
+ boolean durable,
+ boolean autoDelete,
+ boolean internal,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _type = type;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( internal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getType()
+ {
+ return _type;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getInternal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _type );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _type );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "type=" );
+ buf.append( getType() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "internal=" );
+ buf.append( getInternal() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..2861d1e954
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeclareOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareOkBodyImpl extends AMQMethodBody_0_91 implements ExchangeDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeclareOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteBodyImpl.java
new file mode 100644
index 0000000000..f259d6433d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteBodyImpl.java
@@ -0,0 +1,154 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteBodyImpl extends AMQMethodBody_0_91 implements ExchangeDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final byte _bitfield0; // [ifUnused, nowait]
+
+ // Constructor
+ public ExchangeDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ExchangeDeleteBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ boolean ifUnused,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..fc4ef99a5b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ExchangeDeleteOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteOkBodyImpl extends AMQMethodBody_0_91 implements ExchangeDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeleteOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchExchangeDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodDispatcher_0_91.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodDispatcher_0_91.java
new file mode 100644
index 0000000000..9846ce4b48
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodDispatcher_0_91.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.framing.*;
+
+public interface MethodDispatcher_0_91
+ extends MethodDispatcher,
+ ServerMethodDispatcher_0_91,
+ ClientMethodDispatcher_0_91
+{
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodRegistry_0_91.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodRegistry_0_91.java
new file mode 100644
index 0000000000..40970f2266
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/MethodRegistry_0_91.java
@@ -0,0 +1,877 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.protocol.AMQConstant;
+
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+
+import org.apache.qpid.framing.abstraction.ProtocolVersionMethodConverter;
+import org.apache.qpid.codec.MarkableDataInput;
+
+
+public class MethodRegistry_0_91 extends MethodRegistry
+{
+
+ private static final Logger _log = LoggerFactory.getLogger(MethodRegistry.class);
+
+ private ProtocolVersionMethodConverter _protocolVersionConverter = new MethodConverter_0_91();
+
+ private final AMQMethodBodyInstanceFactory[][] _factories = new AMQMethodBodyInstanceFactory[91][];
+
+ public MethodRegistry_0_91()
+ {
+ this(new ProtocolVersion((byte)0,(byte)91));
+ }
+
+ public MethodRegistry_0_91(ProtocolVersion pv)
+ {
+ super(pv);
+
+
+
+ // Register method body instance factories for the Connection class.
+
+ _factories[10] = new AMQMethodBodyInstanceFactory[52];
+
+ _factories[10][10] = ConnectionStartBodyImpl.getFactory();
+ _factories[10][11] = ConnectionStartOkBodyImpl.getFactory();
+ _factories[10][20] = ConnectionSecureBodyImpl.getFactory();
+ _factories[10][21] = ConnectionSecureOkBodyImpl.getFactory();
+ _factories[10][30] = ConnectionTuneBodyImpl.getFactory();
+ _factories[10][31] = ConnectionTuneOkBodyImpl.getFactory();
+ _factories[10][40] = ConnectionOpenBodyImpl.getFactory();
+ _factories[10][41] = ConnectionOpenOkBodyImpl.getFactory();
+ _factories[10][50] = ConnectionCloseBodyImpl.getFactory();
+ _factories[10][51] = ConnectionCloseOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Channel class.
+
+ _factories[20] = new AMQMethodBodyInstanceFactory[42];
+
+ _factories[20][10] = ChannelOpenBodyImpl.getFactory();
+ _factories[20][11] = ChannelOpenOkBodyImpl.getFactory();
+ _factories[20][20] = ChannelFlowBodyImpl.getFactory();
+ _factories[20][21] = ChannelFlowOkBodyImpl.getFactory();
+ _factories[20][40] = ChannelCloseBodyImpl.getFactory();
+ _factories[20][41] = ChannelCloseOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Exchange class.
+
+ _factories[40] = new AMQMethodBodyInstanceFactory[24];
+
+ _factories[40][10] = ExchangeDeclareBodyImpl.getFactory();
+ _factories[40][11] = ExchangeDeclareOkBodyImpl.getFactory();
+ _factories[40][20] = ExchangeDeleteBodyImpl.getFactory();
+ _factories[40][21] = ExchangeDeleteOkBodyImpl.getFactory();
+ _factories[40][22] = ExchangeBoundBodyImpl.getFactory();
+ _factories[40][23] = ExchangeBoundOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Queue class.
+
+ _factories[50] = new AMQMethodBodyInstanceFactory[52];
+
+ _factories[50][10] = QueueDeclareBodyImpl.getFactory();
+ _factories[50][11] = QueueDeclareOkBodyImpl.getFactory();
+ _factories[50][20] = QueueBindBodyImpl.getFactory();
+ _factories[50][21] = QueueBindOkBodyImpl.getFactory();
+ _factories[50][30] = QueuePurgeBodyImpl.getFactory();
+ _factories[50][31] = QueuePurgeOkBodyImpl.getFactory();
+ _factories[50][40] = QueueDeleteBodyImpl.getFactory();
+ _factories[50][41] = QueueDeleteOkBodyImpl.getFactory();
+ _factories[50][50] = QueueUnbindBodyImpl.getFactory();
+ _factories[50][51] = QueueUnbindOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Basic class.
+
+ _factories[60] = new AMQMethodBodyInstanceFactory[112];
+
+ _factories[60][10] = BasicQosBodyImpl.getFactory();
+ _factories[60][11] = BasicQosOkBodyImpl.getFactory();
+ _factories[60][20] = BasicConsumeBodyImpl.getFactory();
+ _factories[60][21] = BasicConsumeOkBodyImpl.getFactory();
+ _factories[60][30] = BasicCancelBodyImpl.getFactory();
+ _factories[60][31] = BasicCancelOkBodyImpl.getFactory();
+ _factories[60][40] = BasicPublishBodyImpl.getFactory();
+ _factories[60][50] = BasicReturnBodyImpl.getFactory();
+ _factories[60][60] = BasicDeliverBodyImpl.getFactory();
+ _factories[60][70] = BasicGetBodyImpl.getFactory();
+ _factories[60][71] = BasicGetOkBodyImpl.getFactory();
+ _factories[60][72] = BasicGetEmptyBodyImpl.getFactory();
+ _factories[60][80] = BasicAckBodyImpl.getFactory();
+ _factories[60][90] = BasicRejectBodyImpl.getFactory();
+ _factories[60][100] = BasicRecoverBodyImpl.getFactory();
+ _factories[60][110] = BasicRecoverSyncBodyImpl.getFactory();
+ _factories[60][111] = BasicRecoverSyncOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Tx class.
+
+ _factories[90] = new AMQMethodBodyInstanceFactory[32];
+
+ _factories[90][10] = TxSelectBodyImpl.getFactory();
+ _factories[90][11] = TxSelectOkBodyImpl.getFactory();
+ _factories[90][20] = TxCommitBodyImpl.getFactory();
+ _factories[90][21] = TxCommitOkBodyImpl.getFactory();
+ _factories[90][30] = TxRollbackBodyImpl.getFactory();
+ _factories[90][31] = TxRollbackOkBodyImpl.getFactory();
+ }
+
+ public AMQMethodBody convertToBody(MarkableDataInput in, long size)
+ throws AMQFrameDecodingException, IOException
+ {
+ int classId = in.readUnsignedShort();
+ int methodId = in.readUnsignedShort();
+
+ AMQMethodBodyInstanceFactory bodyFactory;
+ try
+ {
+ bodyFactory = _factories[classId][methodId];
+ }
+ catch(NullPointerException e)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 0-91"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+ catch(IndexOutOfBoundsException e)
+ {
+ if(classId >= _factories.length)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 0-91"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ else
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 0-91"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ }
+
+ if (bodyFactory == null)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 0-91"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+
+ return bodyFactory.newInstance(in, size);
+ }
+
+ public int getMaxClassId()
+ {
+ return 90;
+ }
+
+ public int getMaxMethodId(int classId)
+ {
+ return _factories[classId].length - 1;
+ }
+
+
+
+ public ConnectionStartBody createConnectionStartBody(
+ final short versionMajor,
+ final short versionMinor,
+ final FieldTable serverProperties,
+ final byte[] mechanisms,
+ final byte[] locales
+ )
+ {
+ return new ConnectionStartBodyImpl(
+ versionMajor,
+ versionMinor,
+ serverProperties,
+ mechanisms,
+ locales
+ );
+ }
+
+ public ConnectionStartOkBody createConnectionStartOkBody(
+ final FieldTable clientProperties,
+ final AMQShortString mechanism,
+ final byte[] response,
+ final AMQShortString locale
+ )
+ {
+ return new ConnectionStartOkBodyImpl(
+ clientProperties,
+ mechanism,
+ response,
+ locale
+ );
+ }
+
+ public ConnectionSecureBody createConnectionSecureBody(
+ final byte[] challenge
+ )
+ {
+ return new ConnectionSecureBodyImpl(
+ challenge
+ );
+ }
+
+ public ConnectionSecureOkBody createConnectionSecureOkBody(
+ final byte[] response
+ )
+ {
+ return new ConnectionSecureOkBodyImpl(
+ response
+ );
+ }
+
+ public ConnectionTuneBody createConnectionTuneBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionTuneOkBody createConnectionTuneOkBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneOkBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionOpenBody createConnectionOpenBody(
+ final AMQShortString virtualHost,
+ final AMQShortString capabilities,
+ final boolean insist
+ )
+ {
+ return new ConnectionOpenBodyImpl(
+ virtualHost,
+ capabilities,
+ insist
+ );
+ }
+
+ public ConnectionOpenOkBody createConnectionOpenOkBody(
+ final AMQShortString knownHosts
+ )
+ {
+ return new ConnectionOpenOkBodyImpl(
+ knownHosts
+ );
+ }
+
+ public ConnectionCloseBody createConnectionCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ConnectionCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ConnectionCloseOkBody createConnectionCloseOkBody(
+ )
+ {
+ return new ConnectionCloseOkBodyImpl(
+ );
+ }
+
+
+
+
+ public ChannelOpenBody createChannelOpenBody(
+ final AMQShortString outOfBand
+ )
+ {
+ return new ChannelOpenBodyImpl(
+ outOfBand
+ );
+ }
+
+ public ChannelOpenOkBody createChannelOpenOkBody(
+ final byte[] channelId
+ )
+ {
+ return new ChannelOpenOkBodyImpl(
+ channelId
+ );
+ }
+
+ public ChannelFlowBody createChannelFlowBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowBodyImpl(
+ active
+ );
+ }
+
+ public ChannelFlowOkBody createChannelFlowOkBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowOkBodyImpl(
+ active
+ );
+ }
+
+ public ChannelCloseBody createChannelCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ChannelCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ChannelCloseOkBody createChannelCloseOkBody(
+ )
+ {
+ return new ChannelCloseOkBodyImpl(
+ );
+ }
+
+
+
+
+ public ExchangeDeclareBody createExchangeDeclareBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString type,
+ final boolean passive,
+ final boolean durable,
+ final boolean autoDelete,
+ final boolean internal,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new ExchangeDeclareBodyImpl(
+ ticket,
+ exchange,
+ type,
+ passive,
+ durable,
+ autoDelete,
+ internal,
+ nowait,
+ arguments
+ );
+ }
+
+ public ExchangeDeclareOkBody createExchangeDeclareOkBody(
+ )
+ {
+ return new ExchangeDeclareOkBodyImpl(
+ );
+ }
+
+ public ExchangeDeleteBody createExchangeDeleteBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final boolean ifUnused,
+ final boolean nowait
+ )
+ {
+ return new ExchangeDeleteBodyImpl(
+ ticket,
+ exchange,
+ ifUnused,
+ nowait
+ );
+ }
+
+ public ExchangeDeleteOkBody createExchangeDeleteOkBody(
+ )
+ {
+ return new ExchangeDeleteOkBodyImpl(
+ );
+ }
+
+ public ExchangeBoundBody createExchangeBoundBody(
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString queue
+ )
+ {
+ return new ExchangeBoundBodyImpl(
+ exchange,
+ routingKey,
+ queue
+ );
+ }
+
+ public ExchangeBoundOkBody createExchangeBoundOkBody(
+ final int replyCode,
+ final AMQShortString replyText
+ )
+ {
+ return new ExchangeBoundOkBodyImpl(
+ replyCode,
+ replyText
+ );
+ }
+
+
+
+
+ public QueueDeclareBody createQueueDeclareBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean passive,
+ final boolean durable,
+ final boolean exclusive,
+ final boolean autoDelete,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueDeclareBodyImpl(
+ ticket,
+ queue,
+ passive,
+ durable,
+ exclusive,
+ autoDelete,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueDeclareOkBody createQueueDeclareOkBody(
+ final AMQShortString queue,
+ final long messageCount,
+ final long consumerCount
+ )
+ {
+ return new QueueDeclareOkBodyImpl(
+ queue,
+ messageCount,
+ consumerCount
+ );
+ }
+
+ public QueueBindBody createQueueBindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueBindBodyImpl(
+ ticket,
+ queue,
+ exchange,
+ routingKey,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueBindOkBody createQueueBindOkBody(
+ )
+ {
+ return new QueueBindOkBodyImpl(
+ );
+ }
+
+ public QueuePurgeBody createQueuePurgeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean nowait
+ )
+ {
+ return new QueuePurgeBodyImpl(
+ ticket,
+ queue,
+ nowait
+ );
+ }
+
+ public QueuePurgeOkBody createQueuePurgeOkBody(
+ final long messageCount
+ )
+ {
+ return new QueuePurgeOkBodyImpl(
+ messageCount
+ );
+ }
+
+ public QueueDeleteBody createQueueDeleteBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean ifUnused,
+ final boolean ifEmpty,
+ final boolean nowait
+ )
+ {
+ return new QueueDeleteBodyImpl(
+ ticket,
+ queue,
+ ifUnused,
+ ifEmpty,
+ nowait
+ );
+ }
+
+ public QueueDeleteOkBody createQueueDeleteOkBody(
+ final long messageCount
+ )
+ {
+ return new QueueDeleteOkBodyImpl(
+ messageCount
+ );
+ }
+
+ public QueueUnbindBody createQueueUnbindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final FieldTable arguments
+ )
+ {
+ return new QueueUnbindBodyImpl(
+ ticket,
+ queue,
+ exchange,
+ routingKey,
+ arguments
+ );
+ }
+
+ public QueueUnbindOkBody createQueueUnbindOkBody(
+ )
+ {
+ return new QueueUnbindOkBodyImpl(
+ );
+ }
+
+
+
+
+ public BasicQosBody createBasicQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new BasicQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public BasicQosOkBody createBasicQosOkBody(
+ )
+ {
+ return new BasicQosOkBodyImpl(
+ );
+ }
+
+ public BasicConsumeBody createBasicConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new BasicConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ noAck,
+ exclusive,
+ nowait,
+ arguments
+ );
+ }
+
+ public BasicConsumeOkBody createBasicConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicCancelBody createBasicCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new BasicCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public BasicCancelOkBody createBasicCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicPublishBody createBasicPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ )
+ {
+ return new BasicPublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate
+ );
+ }
+
+ public BasicReturnBody createBasicReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicDeliverBody createBasicDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicGetBody createBasicGetBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean noAck
+ )
+ {
+ return new BasicGetBodyImpl(
+ ticket,
+ queue,
+ noAck
+ );
+ }
+
+ public BasicGetOkBody createBasicGetOkBody(
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final long messageCount
+ )
+ {
+ return new BasicGetOkBodyImpl(
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey,
+ messageCount
+ );
+ }
+
+ public BasicGetEmptyBody createBasicGetEmptyBody(
+ final AMQShortString clusterId
+ )
+ {
+ return new BasicGetEmptyBodyImpl(
+ clusterId
+ );
+ }
+
+ public BasicAckBody createBasicAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ )
+ {
+ return new BasicAckBodyImpl(
+ deliveryTag,
+ multiple
+ );
+ }
+
+ public BasicRejectBody createBasicRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ )
+ {
+ return new BasicRejectBodyImpl(
+ deliveryTag,
+ requeue
+ );
+ }
+
+ public BasicRecoverBody createBasicRecoverBody(
+ final boolean requeue
+ )
+ {
+ return new BasicRecoverBodyImpl(
+ requeue
+ );
+ }
+
+ public BasicRecoverSyncBody createBasicRecoverSyncBody(
+ final boolean requeue
+ )
+ {
+ return new BasicRecoverSyncBodyImpl(
+ requeue
+ );
+ }
+
+ public BasicRecoverSyncOkBody createBasicRecoverSyncOkBody(
+ )
+ {
+ return new BasicRecoverSyncOkBodyImpl(
+ );
+ }
+
+
+
+
+ public TxSelectBody createTxSelectBody(
+ )
+ {
+ return new TxSelectBodyImpl(
+ );
+ }
+
+ public TxSelectOkBody createTxSelectOkBody(
+ )
+ {
+ return new TxSelectOkBodyImpl(
+ );
+ }
+
+ public TxCommitBody createTxCommitBody(
+ )
+ {
+ return new TxCommitBodyImpl(
+ );
+ }
+
+ public TxCommitOkBody createTxCommitOkBody(
+ )
+ {
+ return new TxCommitOkBodyImpl(
+ );
+ }
+
+ public TxRollbackBody createTxRollbackBody(
+ )
+ {
+ return new TxRollbackBodyImpl(
+ );
+ }
+
+ public TxRollbackOkBody createTxRollbackOkBody(
+ )
+ {
+ return new TxRollbackOkBodyImpl(
+ );
+ }
+
+
+
+ public ProtocolVersionMethodConverter getProtocolVersionMethodConverter()
+ {
+ return _protocolVersionConverter;
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindBodyImpl.java
new file mode 100644
index 0000000000..3c79181d1d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindBodyImpl extends AMQMethodBody_0_91 implements QueueBindBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueBindBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueBindBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueBind(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindOkBodyImpl.java
new file mode 100644
index 0000000000..b73ed8840d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueBindOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindOkBodyImpl extends AMQMethodBody_0_91 implements QueueBindOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public QueueBindOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public QueueBindOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueBindOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareBodyImpl.java
new file mode 100644
index 0000000000..3f315cd239
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareBodyImpl extends AMQMethodBody_0_91 implements QueueDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [passive, durable, exclusive, autoDelete, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueDeclareBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean passive,
+ boolean durable,
+ boolean exclusive,
+ boolean autoDelete,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..6f4452199d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeclareOkBodyImpl.java
@@ -0,0 +1,136 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareOkBodyImpl extends AMQMethodBody_0_91 implements QueueDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final AMQShortString _queue; // [queue]
+ private final long _messageCount; // [messageCount]
+ private final long _consumerCount; // [consumerCount]
+
+ // Constructor
+ public QueueDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _queue = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ _consumerCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeclareOkBodyImpl(
+ AMQShortString queue,
+ long messageCount,
+ long consumerCount
+ )
+ {
+ _queue = queue;
+ _messageCount = messageCount;
+ _consumerCount = consumerCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+ public final long getConsumerCount()
+ {
+ return _consumerCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _queue );
+ writeUnsignedInteger( buffer, _messageCount );
+ writeUnsignedInteger( buffer, _consumerCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareOkBodyImpl: ");
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append( ", " );
+ buf.append( "consumerCount=" );
+ buf.append( getConsumerCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteBodyImpl.java
new file mode 100644
index 0000000000..1d021d9c18
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteBodyImpl extends AMQMethodBody_0_91 implements QueueDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [ifUnused, ifEmpty, nowait]
+
+ // Constructor
+ public QueueDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueueDeleteBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean ifUnused,
+ boolean ifEmpty,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( ifEmpty )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getIfEmpty()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "ifEmpty=" );
+ buf.append( getIfEmpty() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..30e54e15a2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueDeleteOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteOkBodyImpl extends AMQMethodBody_0_91 implements QueueDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueueDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeleteOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeBodyImpl.java
new file mode 100644
index 0000000000..b217a8b3f2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeBodyImpl extends AMQMethodBody_0_91 implements QueuePurgeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public QueuePurgeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueuePurgeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueuePurge(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeOkBodyImpl.java
new file mode 100644
index 0000000000..268ebcff54
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueuePurgeOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeOkBodyImpl extends AMQMethodBody_0_91 implements QueuePurgeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueuePurgeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueuePurgeOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueuePurgeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindBodyImpl.java
new file mode 100644
index 0000000000..d29db36ffa
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindBodyImpl.java
@@ -0,0 +1,163 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueUnbindBodyImpl extends AMQMethodBody_0_91 implements QueueUnbindBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueUnbindBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueUnbindBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueUnbindBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueUnbind(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueUnbindBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindOkBodyImpl.java
new file mode 100644
index 0000000000..01747fa536
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/QueueUnbindOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueUnbindOkBodyImpl extends AMQMethodBody_0_91 implements QueueUnbindOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueUnbindOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 51;
+
+ // Fields declared in specification
+
+ // Constructor
+ public QueueUnbindOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public QueueUnbindOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchQueueUnbindOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueUnbindOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ServerMethodDispatcher_0_91.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ServerMethodDispatcher_0_91.java
new file mode 100644
index 0000000000..b24b8253d2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/ServerMethodDispatcher_0_91.java
@@ -0,0 +1,69 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+
+public interface ServerMethodDispatcher_0_91 extends ServerMethodDispatcher
+{
+
+ public boolean dispatchBasicAck(BasicAckBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancel(BasicCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsume(BasicConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGet(BasicGetBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicPublish(BasicPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQos(BasicQosBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecover(BasicRecoverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecoverSync(BasicRecoverSyncBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReject(BasicRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpen(ChannelOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpen(ConnectionOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecureOk(ConnectionSecureOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStartOk(ConnectionStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTuneOk(ConnectionTuneOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBound(ExchangeBoundBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclare(ExchangeDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDelete(ExchangeDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBind(QueueBindBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclare(QueueDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDelete(QueueDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurge(QueuePurgeBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueUnbind(QueueUnbindBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommit(TxCommitBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollback(TxRollbackBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelect(TxSelectBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitBodyImpl.java
new file mode 100644
index 0000000000..8e2427efc4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitBodyImpl extends AMQMethodBody_0_91 implements TxCommitBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxCommit(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitOkBodyImpl.java
new file mode 100644
index 0000000000..df7af95c0f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxCommitOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitOkBodyImpl extends AMQMethodBody_0_91 implements TxCommitOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxCommitOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackBodyImpl.java
new file mode 100644
index 0000000000..3b3e1d5366
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackBodyImpl extends AMQMethodBody_0_91 implements TxRollbackBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxRollback(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackOkBodyImpl.java
new file mode 100644
index 0000000000..0d820a4b82
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxRollbackOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackOkBodyImpl extends AMQMethodBody_0_91 implements TxRollbackOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxRollbackOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectBodyImpl.java
new file mode 100644
index 0000000000..ad0fe78e9a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectBodyImpl extends AMQMethodBody_0_91 implements TxSelectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxSelect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectOkBodyImpl.java
new file mode 100644
index 0000000000..bfc6296b24
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_0_91/TxSelectOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 0-91
+ */
+
+package org.apache.qpid.framing.amqp_0_91;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectOkBodyImpl extends AMQMethodBody_0_91 implements TxSelectOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_0_91)dispatcher).dispatchTxSelectOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestBodyImpl.java
new file mode 100644
index 0000000000..a29363f293
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class AccessRequestBodyImpl extends AMQMethodBody_8_0 implements AccessRequestBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new AccessRequestBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 30;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final AMQShortString _realm; // [realm]
+ private final byte _bitfield0; // [exclusive, passive, active, write, read]
+
+ // Constructor
+ public AccessRequestBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _realm = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public AccessRequestBodyImpl(
+ AMQShortString realm,
+ boolean exclusive,
+ boolean passive,
+ boolean active,
+ boolean write,
+ boolean read
+ )
+ {
+ _realm = realm;
+ byte bitfield0 = (byte)0;
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( write )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( read )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getRealm()
+ {
+ return _realm;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getWrite()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getRead()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _realm );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _realm );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchAccessRequest(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[AccessRequestBodyImpl: ");
+ buf.append( "realm=" );
+ buf.append( getRealm() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append( ", " );
+ buf.append( "write=" );
+ buf.append( getWrite() );
+ buf.append( ", " );
+ buf.append( "read=" );
+ buf.append( getRead() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestOkBodyImpl.java
new file mode 100644
index 0000000000..5c207b59d4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/AccessRequestOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class AccessRequestOkBodyImpl extends AMQMethodBody_8_0 implements AccessRequestOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new AccessRequestOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 30;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+
+ // Constructor
+ public AccessRequestOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ }
+
+ public AccessRequestOkBodyImpl(
+ int ticket
+ )
+ {
+ _ticket = ticket;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchAccessRequestOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[AccessRequestOkBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicAckBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicAckBodyImpl.java
new file mode 100644
index 0000000000..81f84ecf7f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicAckBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicAckBodyImpl extends AMQMethodBody_8_0 implements BasicAckBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicAckBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [multiple]
+
+ // Constructor
+ public BasicAckBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicAckBodyImpl(
+ long deliveryTag,
+ boolean multiple
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( multiple )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getMultiple()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicAck(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicAckBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "multiple=" );
+ buf.append( getMultiple() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelBodyImpl.java
new file mode 100644
index 0000000000..196268654b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelBodyImpl extends AMQMethodBody_8_0 implements BasicCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public BasicCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelOkBodyImpl.java
new file mode 100644
index 0000000000..082348616d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicCancelOkBodyImpl extends AMQMethodBody_8_0 implements BasicCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeBodyImpl.java
new file mode 100644
index 0000000000..d11f18986f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeBodyImpl extends AMQMethodBody_8_0 implements BasicConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public BasicConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public BasicConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..7327b2da3f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicConsumeOkBodyImpl extends AMQMethodBody_8_0 implements BasicConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public BasicConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public BasicConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicDeliverBodyImpl.java
new file mode 100644
index 0000000000..58cf16fe55
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicDeliverBodyImpl.java
@@ -0,0 +1,168 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicDeliverBodyImpl extends AMQMethodBody_8_0 implements BasicDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetBodyImpl.java
new file mode 100644
index 0000000000..d348101cee
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetBodyImpl extends AMQMethodBody_8_0 implements BasicGetBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [noAck]
+
+ // Constructor
+ public BasicGetBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicGetBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean noAck
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicGet(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetEmptyBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetEmptyBodyImpl.java
new file mode 100644
index 0000000000..3e49be1eb1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetEmptyBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetEmptyBodyImpl extends AMQMethodBody_8_0 implements BasicGetEmptyBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetEmptyBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 72;
+
+ // Fields declared in specification
+ private final AMQShortString _clusterId; // [clusterId]
+
+ // Constructor
+ public BasicGetEmptyBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clusterId = readAMQShortString( buffer );
+ }
+
+ public BasicGetEmptyBodyImpl(
+ AMQShortString clusterId
+ )
+ {
+ _clusterId = clusterId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getClusterId()
+ {
+ return _clusterId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clusterId );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _clusterId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicGetEmpty(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetEmptyBodyImpl: ");
+ buf.append( "clusterId=" );
+ buf.append( getClusterId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetOkBodyImpl.java
new file mode 100644
index 0000000000..bcfefe2e34
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicGetOkBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicGetOkBodyImpl extends AMQMethodBody_8_0 implements BasicGetOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicGetOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 71;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public BasicGetOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public BasicGetOkBodyImpl(
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ long messageCount
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 13;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicGetOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicGetOkBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicPublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicPublishBodyImpl.java
new file mode 100644
index 0000000000..dc5d82a5b4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicPublishBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicPublishBodyImpl extends AMQMethodBody_8_0 implements BasicPublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicPublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+
+ // Constructor
+ public BasicPublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicPublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicPublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicPublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosBodyImpl.java
new file mode 100644
index 0000000000..76fdfac3cd
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosBodyImpl extends AMQMethodBody_8_0 implements BasicQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public BasicQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosOkBodyImpl.java
new file mode 100644
index 0000000000..a9d7ca998c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicQosOkBodyImpl extends AMQMethodBody_8_0 implements BasicQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverBodyImpl.java
new file mode 100644
index 0000000000..2ad62004bc
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverBodyImpl extends AMQMethodBody_8_0 implements BasicRecoverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRecoverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRecoverBodyImpl(
+ boolean requeue
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicRecover(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverBodyImpl: ");
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverOkBodyImpl.java
new file mode 100644
index 0000000000..4d247b7edd
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRecoverOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRecoverOkBodyImpl extends AMQMethodBody_8_0 implements BasicRecoverOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRecoverOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 101;
+
+ // Fields declared in specification
+
+ // Constructor
+ public BasicRecoverOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public BasicRecoverOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicRecoverOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRecoverOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRejectBodyImpl.java
new file mode 100644
index 0000000000..b1ae381f12
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicRejectBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicRejectBodyImpl extends AMQMethodBody_8_0 implements BasicRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public BasicRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public BasicRejectBodyImpl(
+ long deliveryTag,
+ boolean requeue
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicRejectBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicReturnBodyImpl.java
new file mode 100644
index 0000000000..9675aec1a1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/BasicReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class BasicReturnBodyImpl extends AMQMethodBody_8_0 implements BasicReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new BasicReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 60;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public BasicReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public BasicReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchBasicReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[BasicReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelAlertBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelAlertBodyImpl.java
new file mode 100644
index 0000000000..eecd44b026
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelAlertBodyImpl.java
@@ -0,0 +1,137 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelAlertBodyImpl extends AMQMethodBody_8_0 implements ChannelAlertBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelAlertBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final FieldTable _details; // [details]
+
+ // Constructor
+ public ChannelAlertBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _details = readFieldTable( buffer );
+ }
+
+ public ChannelAlertBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ FieldTable details
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _details = details;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final FieldTable getDetails()
+ {
+ return _details;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _details );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeFieldTable( buffer, _details );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelAlert(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelAlertBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "details=" );
+ buf.append( getDetails() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseBodyImpl.java
new file mode 100644
index 0000000000..dccb691dc8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseBodyImpl extends AMQMethodBody_8_0 implements ChannelCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ChannelCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ChannelCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseOkBodyImpl.java
new file mode 100644
index 0000000000..ed3eab5da9
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelCloseOkBodyImpl extends AMQMethodBody_8_0 implements ChannelCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowBodyImpl.java
new file mode 100644
index 0000000000..12886543cf
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowBodyImpl extends AMQMethodBody_8_0 implements ChannelFlowBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelFlow(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowOkBodyImpl.java
new file mode 100644
index 0000000000..8b6ae9c444
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelFlowOkBodyImpl.java
@@ -0,0 +1,116 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelFlowOkBodyImpl extends AMQMethodBody_8_0 implements ChannelFlowOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelFlowOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte _bitfield0; // [active]
+
+ // Constructor
+ public ChannelFlowOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ChannelFlowOkBodyImpl(
+ boolean active
+ )
+ {
+ byte bitfield0 = (byte)0;
+ if( active )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final boolean getActive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelFlowOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelFlowOkBodyImpl: ");
+ buf.append( "active=" );
+ buf.append( getActive() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenBodyImpl.java
new file mode 100644
index 0000000000..c4dab6343d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenBodyImpl extends AMQMethodBody_8_0 implements ChannelOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final AMQShortString _outOfBand; // [outOfBand]
+
+ // Constructor
+ public ChannelOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _outOfBand = readAMQShortString( buffer );
+ }
+
+ public ChannelOpenBodyImpl(
+ AMQShortString outOfBand
+ )
+ {
+ _outOfBand = outOfBand;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getOutOfBand()
+ {
+ return _outOfBand;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _outOfBand );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _outOfBand );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenBodyImpl: ");
+ buf.append( "outOfBand=" );
+ buf.append( getOutOfBand() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenOkBodyImpl.java
new file mode 100644
index 0000000000..f84a0c314d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ChannelOpenOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ChannelOpenOkBodyImpl extends AMQMethodBody_8_0 implements ChannelOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ChannelOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 20;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ChannelOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ChannelOpenOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchChannelOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ChannelOpenOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ClientMethodDispatcher_8_0.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ClientMethodDispatcher_8_0.java
new file mode 100644
index 0000000000..52e44a8e4d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ClientMethodDispatcher_8_0.java
@@ -0,0 +1,92 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+public interface ClientMethodDispatcher_8_0 extends ClientMethodDispatcher
+{
+
+ public boolean dispatchAccessRequestOk(AccessRequestOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancelOk(BasicCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsumeOk(BasicConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicDeliver(BasicDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetEmpty(BasicGetEmptyBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGetOk(BasicGetOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQosOk(BasicQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecoverOk(BasicRecoverOkBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReturn(BasicReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelAlert(ChannelAlertBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpenOk(ChannelOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpenOk(ConnectionOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionRedirect(ConnectionRedirectBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecure(ConnectionSecureBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStart(ConnectionStartBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTune(ConnectionTuneBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxSelectOk(DtxSelectOkBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxStartOk(DtxStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBoundOk(ExchangeBoundOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclareOk(ExchangeDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeleteOk(ExchangeDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileCancelOk(FileCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileConsumeOk(FileConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileDeliver(FileDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpen(FileOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpenOk(FileOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileQosOk(FileQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFileReturn(FileReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchFileStage(FileStageBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBindOk(QueueBindOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclareOk(QueueDeclareOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeleteOk(QueueDeleteOkBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurgeOk(QueuePurgeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamCancelOk(StreamCancelOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamConsumeOk(StreamConsumeOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamDeliver(StreamDeliverBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamQosOk(StreamQosOkBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamReturn(StreamReturnBody body, int channelId) throws AMQException;
+ public boolean dispatchTestContent(TestContentBody body, int channelId) throws AMQException;
+ public boolean dispatchTestContentOk(TestContentOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestInteger(TestIntegerBody body, int channelId) throws AMQException;
+ public boolean dispatchTestIntegerOk(TestIntegerOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestString(TestStringBody body, int channelId) throws AMQException;
+ public boolean dispatchTestStringOk(TestStringOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestTable(TestTableBody body, int channelId) throws AMQException;
+ public boolean dispatchTestTableOk(TestTableOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommitOk(TxCommitOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollbackOk(TxRollbackOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelectOk(TxSelectOkBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseBodyImpl.java
new file mode 100644
index 0000000000..eab4ef05ee
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseBodyImpl.java
@@ -0,0 +1,148 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseBodyImpl extends AMQMethodBody_8_0 implements ConnectionCloseBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final int _classId; // [classId]
+ private final int _methodId; // [methodId]
+
+ // Constructor
+ public ConnectionCloseBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _classId = readUnsignedShort( buffer );
+ _methodId = readUnsignedShort( buffer );
+ }
+
+ public ConnectionCloseBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ int classId,
+ int methodId
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _classId = classId;
+ _methodId = methodId;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final int getClassId()
+ {
+ return _classId;
+ }
+ public final int getMethodId()
+ {
+ return _methodId;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 6;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeUnsignedShort( buffer, _classId );
+ writeUnsignedShort( buffer, _methodId );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionClose(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "classId=" );
+ buf.append( getClassId() );
+ buf.append( ", " );
+ buf.append( "methodId=" );
+ buf.append( getMethodId() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseOkBodyImpl.java
new file mode 100644
index 0000000000..876715a37b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionCloseOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionCloseOkBodyImpl extends AMQMethodBody_8_0 implements ConnectionCloseOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionCloseOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 61;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ConnectionCloseOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ConnectionCloseOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionCloseOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionCloseOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenBodyImpl.java
new file mode 100644
index 0000000000..7745a8de0a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenBodyImpl.java
@@ -0,0 +1,142 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenBodyImpl extends AMQMethodBody_8_0 implements ConnectionOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final AMQShortString _virtualHost; // [virtualHost]
+ private final AMQShortString _capabilities; // [capabilities]
+ private final byte _bitfield0; // [insist]
+
+ // Constructor
+ public ConnectionOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _virtualHost = readAMQShortString( buffer );
+ _capabilities = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ConnectionOpenBodyImpl(
+ AMQShortString virtualHost,
+ AMQShortString capabilities,
+ boolean insist
+ )
+ {
+ _virtualHost = virtualHost;
+ _capabilities = capabilities;
+ byte bitfield0 = (byte)0;
+ if( insist )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getVirtualHost()
+ {
+ return _virtualHost;
+ }
+ public final AMQShortString getCapabilities()
+ {
+ return _capabilities;
+ }
+ public final boolean getInsist()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _virtualHost );
+ size += getSizeOf( _capabilities );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _virtualHost );
+ writeAMQShortString( buffer, _capabilities );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenBodyImpl: ");
+ buf.append( "virtualHost=" );
+ buf.append( getVirtualHost() );
+ buf.append( ", " );
+ buf.append( "capabilities=" );
+ buf.append( getCapabilities() );
+ buf.append( ", " );
+ buf.append( "insist=" );
+ buf.append( getInsist() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenOkBodyImpl.java
new file mode 100644
index 0000000000..b74a2857cd
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionOpenOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionOpenOkBodyImpl extends AMQMethodBody_8_0 implements ConnectionOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final AMQShortString _knownHosts; // [knownHosts]
+
+ // Constructor
+ public ConnectionOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _knownHosts = readAMQShortString( buffer );
+ }
+
+ public ConnectionOpenOkBodyImpl(
+ AMQShortString knownHosts
+ )
+ {
+ _knownHosts = knownHosts;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getKnownHosts()
+ {
+ return _knownHosts;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _knownHosts );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _knownHosts );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionOpenOkBodyImpl: ");
+ buf.append( "knownHosts=" );
+ buf.append( getKnownHosts() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionRedirectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionRedirectBodyImpl.java
new file mode 100644
index 0000000000..59eadf1be3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionRedirectBodyImpl.java
@@ -0,0 +1,125 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionRedirectBodyImpl extends AMQMethodBody_8_0 implements ConnectionRedirectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionRedirectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final AMQShortString _host; // [host]
+ private final AMQShortString _knownHosts; // [knownHosts]
+
+ // Constructor
+ public ConnectionRedirectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _host = readAMQShortString( buffer );
+ _knownHosts = readAMQShortString( buffer );
+ }
+
+ public ConnectionRedirectBodyImpl(
+ AMQShortString host,
+ AMQShortString knownHosts
+ )
+ {
+ _host = host;
+ _knownHosts = knownHosts;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getHost()
+ {
+ return _host;
+ }
+ public final AMQShortString getKnownHosts()
+ {
+ return _knownHosts;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _host );
+ size += getSizeOf( _knownHosts );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _host );
+ writeAMQShortString( buffer, _knownHosts );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionRedirect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionRedirectBodyImpl: ");
+ buf.append( "host=" );
+ buf.append( getHost() );
+ buf.append( ", " );
+ buf.append( "knownHosts=" );
+ buf.append( getKnownHosts() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureBodyImpl.java
new file mode 100644
index 0000000000..29b341463e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureBodyImpl extends AMQMethodBody_8_0 implements ConnectionSecureBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final byte[] _challenge; // [challenge]
+
+ // Constructor
+ public ConnectionSecureBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _challenge = readBytes( buffer );
+ }
+
+ public ConnectionSecureBodyImpl(
+ byte[] challenge
+ )
+ {
+ _challenge = challenge;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getChallenge()
+ {
+ return _challenge;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _challenge );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _challenge );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionSecure(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureBodyImpl: ");
+ buf.append( "challenge=" );
+ buf.append( getChallenge() == null ? "null" : java.util.Arrays.toString( getChallenge() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureOkBodyImpl.java
new file mode 100644
index 0000000000..046abf439c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionSecureOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionSecureOkBodyImpl extends AMQMethodBody_8_0 implements ConnectionSecureOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionSecureOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte[] _response; // [response]
+
+ // Constructor
+ public ConnectionSecureOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _response = readBytes( buffer );
+ }
+
+ public ConnectionSecureOkBodyImpl(
+ byte[] response
+ )
+ {
+ _response = response;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _response );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _response );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionSecureOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionSecureOkBodyImpl: ");
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartBodyImpl.java
new file mode 100644
index 0000000000..1f23a9da6e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartBodyImpl.java
@@ -0,0 +1,162 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartBodyImpl extends AMQMethodBody_8_0 implements ConnectionStartBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final short _versionMajor; // [versionMajor]
+ private final short _versionMinor; // [versionMinor]
+ private final FieldTable _serverProperties; // [serverProperties]
+ private final byte[] _mechanisms; // [mechanisms]
+ private final byte[] _locales; // [locales]
+
+ // Constructor
+ public ConnectionStartBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _versionMajor = readUnsignedByte( buffer );
+ _versionMinor = readUnsignedByte( buffer );
+ _serverProperties = readFieldTable( buffer );
+ _mechanisms = readBytes( buffer );
+ _locales = readBytes( buffer );
+ }
+
+ public ConnectionStartBodyImpl(
+ short versionMajor,
+ short versionMinor,
+ FieldTable serverProperties,
+ byte[] mechanisms,
+ byte[] locales
+ )
+ {
+ _versionMajor = versionMajor;
+ _versionMinor = versionMinor;
+ _serverProperties = serverProperties;
+ _mechanisms = mechanisms;
+ _locales = locales;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final short getVersionMajor()
+ {
+ return _versionMajor;
+ }
+ public final short getVersionMinor()
+ {
+ return _versionMinor;
+ }
+ public final FieldTable getServerProperties()
+ {
+ return _serverProperties;
+ }
+ public final byte[] getMechanisms()
+ {
+ return _mechanisms;
+ }
+ public final byte[] getLocales()
+ {
+ return _locales;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _serverProperties );
+ size += getSizeOf( _mechanisms );
+ size += getSizeOf( _locales );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedByte( buffer, _versionMajor );
+ writeUnsignedByte( buffer, _versionMinor );
+ writeFieldTable( buffer, _serverProperties );
+ writeBytes( buffer, _mechanisms );
+ writeBytes( buffer, _locales );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionStart(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartBodyImpl: ");
+ buf.append( "versionMajor=" );
+ buf.append( getVersionMajor() );
+ buf.append( ", " );
+ buf.append( "versionMinor=" );
+ buf.append( getVersionMinor() );
+ buf.append( ", " );
+ buf.append( "serverProperties=" );
+ buf.append( getServerProperties() );
+ buf.append( ", " );
+ buf.append( "mechanisms=" );
+ buf.append( getMechanisms() == null ? "null" : java.util.Arrays.toString( getMechanisms() ) );
+ buf.append( ", " );
+ buf.append( "locales=" );
+ buf.append( getLocales() == null ? "null" : java.util.Arrays.toString( getLocales() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartOkBodyImpl.java
new file mode 100644
index 0000000000..24ecf380ac
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionStartOkBodyImpl.java
@@ -0,0 +1,151 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionStartOkBodyImpl extends AMQMethodBody_8_0 implements ConnectionStartOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionStartOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final FieldTable _clientProperties; // [clientProperties]
+ private final AMQShortString _mechanism; // [mechanism]
+ private final byte[] _response; // [response]
+ private final AMQShortString _locale; // [locale]
+
+ // Constructor
+ public ConnectionStartOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _clientProperties = readFieldTable( buffer );
+ _mechanism = readAMQShortString( buffer );
+ _response = readBytes( buffer );
+ _locale = readAMQShortString( buffer );
+ }
+
+ public ConnectionStartOkBodyImpl(
+ FieldTable clientProperties,
+ AMQShortString mechanism,
+ byte[] response,
+ AMQShortString locale
+ )
+ {
+ _clientProperties = clientProperties;
+ _mechanism = mechanism;
+ _response = response;
+ _locale = locale;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getClientProperties()
+ {
+ return _clientProperties;
+ }
+ public final AMQShortString getMechanism()
+ {
+ return _mechanism;
+ }
+ public final byte[] getResponse()
+ {
+ return _response;
+ }
+ public final AMQShortString getLocale()
+ {
+ return _locale;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _clientProperties );
+ size += getSizeOf( _mechanism );
+ size += getSizeOf( _response );
+ size += getSizeOf( _locale );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _clientProperties );
+ writeAMQShortString( buffer, _mechanism );
+ writeBytes( buffer, _response );
+ writeAMQShortString( buffer, _locale );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionStartOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionStartOkBodyImpl: ");
+ buf.append( "clientProperties=" );
+ buf.append( getClientProperties() );
+ buf.append( ", " );
+ buf.append( "mechanism=" );
+ buf.append( getMechanism() );
+ buf.append( ", " );
+ buf.append( "response=" );
+ buf.append( getResponse() == null ? "null" : java.util.Arrays.toString( getResponse() ) );
+ buf.append( ", " );
+ buf.append( "locale=" );
+ buf.append( getLocale() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneBodyImpl.java
new file mode 100644
index 0000000000..83aff93055
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneBodyImpl extends AMQMethodBody_8_0 implements ConnectionTuneBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionTune(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneOkBodyImpl.java
new file mode 100644
index 0000000000..a6221b9815
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ConnectionTuneOkBodyImpl.java
@@ -0,0 +1,135 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ConnectionTuneOkBodyImpl extends AMQMethodBody_8_0 implements ConnectionTuneOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ConnectionTuneOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 10;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final int _channelMax; // [channelMax]
+ private final long _frameMax; // [frameMax]
+ private final int _heartbeat; // [heartbeat]
+
+ // Constructor
+ public ConnectionTuneOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _channelMax = readUnsignedShort( buffer );
+ _frameMax = readUnsignedInteger( buffer );
+ _heartbeat = readUnsignedShort( buffer );
+ }
+
+ public ConnectionTuneOkBodyImpl(
+ int channelMax,
+ long frameMax,
+ int heartbeat
+ )
+ {
+ _channelMax = channelMax;
+ _frameMax = frameMax;
+ _heartbeat = heartbeat;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getChannelMax()
+ {
+ return _channelMax;
+ }
+ public final long getFrameMax()
+ {
+ return _frameMax;
+ }
+ public final int getHeartbeat()
+ {
+ return _heartbeat;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _channelMax );
+ writeUnsignedInteger( buffer, _frameMax );
+ writeUnsignedShort( buffer, _heartbeat );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchConnectionTuneOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ConnectionTuneOkBodyImpl: ");
+ buf.append( "channelMax=" );
+ buf.append( getChannelMax() );
+ buf.append( ", " );
+ buf.append( "frameMax=" );
+ buf.append( getFrameMax() );
+ buf.append( ", " );
+ buf.append( "heartbeat=" );
+ buf.append( getHeartbeat() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectBodyImpl.java
new file mode 100644
index 0000000000..ac2ff8b225
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxSelectBodyImpl extends AMQMethodBody_8_0 implements DtxSelectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxSelectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxSelectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxSelectBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchDtxSelect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxSelectBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectOkBodyImpl.java
new file mode 100644
index 0000000000..2281853e00
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxSelectOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxSelectOkBodyImpl extends AMQMethodBody_8_0 implements DtxSelectOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxSelectOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxSelectOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxSelectOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchDtxSelectOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxSelectOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartBodyImpl.java
new file mode 100644
index 0000000000..b5a1faa760
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxStartBodyImpl extends AMQMethodBody_8_0 implements DtxStartBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxStartBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final AMQShortString _dtxIdentifier; // [dtxIdentifier]
+
+ // Constructor
+ public DtxStartBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _dtxIdentifier = readAMQShortString( buffer );
+ }
+
+ public DtxStartBodyImpl(
+ AMQShortString dtxIdentifier
+ )
+ {
+ _dtxIdentifier = dtxIdentifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getDtxIdentifier()
+ {
+ return _dtxIdentifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _dtxIdentifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _dtxIdentifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchDtxStart(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxStartBodyImpl: ");
+ buf.append( "dtxIdentifier=" );
+ buf.append( getDtxIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartOkBodyImpl.java
new file mode 100644
index 0000000000..73fd13e7d3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/DtxStartOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class DtxStartOkBodyImpl extends AMQMethodBody_8_0 implements DtxStartOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new DtxStartOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 100;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public DtxStartOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public DtxStartOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchDtxStartOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[DtxStartOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundBodyImpl.java
new file mode 100644
index 0000000000..c391f1b7ee
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundBodyImpl.java
@@ -0,0 +1,138 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundBodyImpl extends AMQMethodBody_8_0 implements ExchangeBoundBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 22;
+
+ // Fields declared in specification
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _queue; // [queue]
+
+ // Constructor
+ public ExchangeBoundBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _queue = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundBodyImpl(
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString queue
+ )
+ {
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _queue = queue;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _queue );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeBound(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundBodyImpl: ");
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundOkBodyImpl.java
new file mode 100644
index 0000000000..cfbe77d70e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeBoundOkBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeBoundOkBodyImpl extends AMQMethodBody_8_0 implements ExchangeBoundOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeBoundOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 23;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+
+ // Constructor
+ public ExchangeBoundOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ }
+
+ public ExchangeBoundOkBodyImpl(
+ int replyCode,
+ AMQShortString replyText
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeBoundOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeBoundOkBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareBodyImpl.java
new file mode 100644
index 0000000000..de47e0b867
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareBodyImpl.java
@@ -0,0 +1,220 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareBodyImpl extends AMQMethodBody_8_0 implements ExchangeDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _type; // [type]
+ private final byte _bitfield0; // [passive, durable, autoDelete, internal, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public ExchangeDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _type = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public ExchangeDeclareBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString type,
+ boolean passive,
+ boolean durable,
+ boolean autoDelete,
+ boolean internal,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _type = type;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( internal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getType()
+ {
+ return _type;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getInternal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _type );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _type );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "type=" );
+ buf.append( getType() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "internal=" );
+ buf.append( getInternal() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..8d8ca793b8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeclareOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeclareOkBodyImpl extends AMQMethodBody_8_0 implements ExchangeDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeclareOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeclareOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteBodyImpl.java
new file mode 100644
index 0000000000..2bfc0f13f4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteBodyImpl.java
@@ -0,0 +1,154 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteBodyImpl extends AMQMethodBody_8_0 implements ExchangeDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final byte _bitfield0; // [ifUnused, nowait]
+
+ // Constructor
+ public ExchangeDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public ExchangeDeleteBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ boolean ifUnused,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..996072088c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ExchangeDeleteOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class ExchangeDeleteOkBodyImpl extends AMQMethodBody_8_0 implements ExchangeDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new ExchangeDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 40;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public ExchangeDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public ExchangeDeleteOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchExchangeDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[ExchangeDeleteOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileAckBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileAckBodyImpl.java
new file mode 100644
index 0000000000..1efad0825a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileAckBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileAckBodyImpl extends AMQMethodBody_8_0 implements FileAckBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileAckBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 90;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [multiple]
+
+ // Constructor
+ public FileAckBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileAckBodyImpl(
+ long deliveryTag,
+ boolean multiple
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( multiple )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getMultiple()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileAck(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileAckBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "multiple=" );
+ buf.append( getMultiple() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelBodyImpl.java
new file mode 100644
index 0000000000..422f6d8f16
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileCancelBodyImpl extends AMQMethodBody_8_0 implements FileCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public FileCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelOkBodyImpl.java
new file mode 100644
index 0000000000..b100ce9f1b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileCancelOkBodyImpl extends AMQMethodBody_8_0 implements FileCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public FileCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public FileCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeBodyImpl.java
new file mode 100644
index 0000000000..0a6aa06da4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeBodyImpl.java
@@ -0,0 +1,193 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileConsumeBodyImpl extends AMQMethodBody_8_0 implements FileConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, noAck, exclusive, nowait]
+
+ // Constructor
+ public FileConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean noAck,
+ boolean exclusive,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( noAck )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getNoAck()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "noAck=" );
+ buf.append( getNoAck() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..cde5176f42
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileConsumeOkBodyImpl extends AMQMethodBody_8_0 implements FileConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public FileConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public FileConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileDeliverBodyImpl.java
new file mode 100644
index 0000000000..3cfd508dd7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileDeliverBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileDeliverBodyImpl extends AMQMethodBody_8_0 implements FileDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 80;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [redelivered]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public FileDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public FileDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ boolean redelivered,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ AMQShortString identifier
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( redelivered )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRedelivered()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "redelivered=" );
+ buf.append( getRedelivered() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenBodyImpl.java
new file mode 100644
index 0000000000..aa79d22961
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileOpenBodyImpl extends AMQMethodBody_8_0 implements FileOpenBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileOpenBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final AMQShortString _identifier; // [identifier]
+ private final long _contentSize; // [contentSize]
+
+ // Constructor
+ public FileOpenBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _identifier = readAMQShortString( buffer );
+ _contentSize = readLong( buffer );
+ }
+
+ public FileOpenBodyImpl(
+ AMQShortString identifier,
+ long contentSize
+ )
+ {
+ _identifier = identifier;
+ _contentSize = contentSize;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+ public final long getContentSize()
+ {
+ return _contentSize;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _identifier );
+ writeLong( buffer, _contentSize );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileOpen(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileOpenBodyImpl: ");
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append( ", " );
+ buf.append( "contentSize=" );
+ buf.append( getContentSize() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenOkBodyImpl.java
new file mode 100644
index 0000000000..48845f7074
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileOpenOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileOpenOkBodyImpl extends AMQMethodBody_8_0 implements FileOpenOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileOpenOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _stagedSize; // [stagedSize]
+
+ // Constructor
+ public FileOpenOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _stagedSize = readLong( buffer );
+ }
+
+ public FileOpenOkBodyImpl(
+ long stagedSize
+ )
+ {
+ _stagedSize = stagedSize;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getStagedSize()
+ {
+ return _stagedSize;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _stagedSize );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileOpenOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileOpenOkBodyImpl: ");
+ buf.append( "stagedSize=" );
+ buf.append( getStagedSize() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FilePublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FilePublishBodyImpl.java
new file mode 100644
index 0000000000..c3e01ec686
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FilePublishBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FilePublishBodyImpl extends AMQMethodBody_8_0 implements FilePublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FilePublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+ private final AMQShortString _identifier; // [identifier]
+
+ // Constructor
+ public FilePublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _identifier = readAMQShortString( buffer );
+ }
+
+ public FilePublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate,
+ AMQShortString identifier
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ _bitfield0 = bitfield0;
+ _identifier = identifier;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final AMQShortString getIdentifier()
+ {
+ return _identifier;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _identifier );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ writeAMQShortString( buffer, _identifier );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFilePublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FilePublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append( ", " );
+ buf.append( "identifier=" );
+ buf.append( getIdentifier() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosBodyImpl.java
new file mode 100644
index 0000000000..f78156d8df
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosBodyImpl.java
@@ -0,0 +1,140 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileQosBodyImpl extends AMQMethodBody_8_0 implements FileQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public FileQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 7;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosOkBodyImpl.java
new file mode 100644
index 0000000000..17076f49b3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileQosOkBodyImpl extends AMQMethodBody_8_0 implements FileQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public FileQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public FileQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileRejectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileRejectBodyImpl.java
new file mode 100644
index 0000000000..a4e7a57540
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileRejectBodyImpl.java
@@ -0,0 +1,128 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileRejectBodyImpl extends AMQMethodBody_8_0 implements FileRejectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileRejectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 100;
+
+ // Fields declared in specification
+ private final long _deliveryTag; // [deliveryTag]
+ private final byte _bitfield0; // [requeue]
+
+ // Constructor
+ public FileRejectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _deliveryTag = readLong( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public FileRejectBodyImpl(
+ long deliveryTag,
+ boolean requeue
+ )
+ {
+ _deliveryTag = deliveryTag;
+ byte bitfield0 = (byte)0;
+ if( requeue )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final boolean getRequeue()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 9;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _deliveryTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileReject(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileRejectBodyImpl: ");
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "requeue=" );
+ buf.append( getRequeue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileReturnBodyImpl.java
new file mode 100644
index 0000000000..bf696ca668
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileReturnBodyImpl extends AMQMethodBody_8_0 implements FileReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 70;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public FileReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public FileReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileStageBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileStageBodyImpl.java
new file mode 100644
index 0000000000..8e2185801b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/FileStageBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class FileStageBodyImpl extends AMQMethodBody_8_0 implements FileStageBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new FileStageBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 70;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+
+ // Constructor
+ public FileStageBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public FileStageBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchFileStage(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[FileStageBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodDispatcher_8_0.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodDispatcher_8_0.java
new file mode 100644
index 0000000000..dc4f33ab6d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodDispatcher_8_0.java
@@ -0,0 +1,38 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.framing.*;
+
+public interface MethodDispatcher_8_0
+ extends MethodDispatcher,
+ ServerMethodDispatcher_8_0,
+ ClientMethodDispatcher_8_0
+{
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodRegistry_8_0.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodRegistry_8_0.java
new file mode 100644
index 0000000000..f3c1888e2a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/MethodRegistry_8_0.java
@@ -0,0 +1,1407 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.protocol.AMQConstant;
+
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+
+import org.apache.qpid.framing.abstraction.ProtocolVersionMethodConverter;
+import org.apache.qpid.codec.MarkableDataInput;
+
+
+public class MethodRegistry_8_0 extends MethodRegistry
+{
+
+ private static final Logger _log = LoggerFactory.getLogger(MethodRegistry.class);
+
+ private ProtocolVersionMethodConverter _protocolVersionConverter = new MethodConverter_8_0();
+
+ private final AMQMethodBodyInstanceFactory[][] _factories = new AMQMethodBodyInstanceFactory[121][];
+
+ public MethodRegistry_8_0()
+ {
+ this(new ProtocolVersion((byte)8,(byte)0));
+ }
+
+ public MethodRegistry_8_0(ProtocolVersion pv)
+ {
+ super(pv);
+
+
+
+ // Register method body instance factories for the Connection class.
+
+ _factories[10] = new AMQMethodBodyInstanceFactory[62];
+
+ _factories[10][10] = ConnectionStartBodyImpl.getFactory();
+ _factories[10][11] = ConnectionStartOkBodyImpl.getFactory();
+ _factories[10][20] = ConnectionSecureBodyImpl.getFactory();
+ _factories[10][21] = ConnectionSecureOkBodyImpl.getFactory();
+ _factories[10][30] = ConnectionTuneBodyImpl.getFactory();
+ _factories[10][31] = ConnectionTuneOkBodyImpl.getFactory();
+ _factories[10][40] = ConnectionOpenBodyImpl.getFactory();
+ _factories[10][41] = ConnectionOpenOkBodyImpl.getFactory();
+ _factories[10][50] = ConnectionRedirectBodyImpl.getFactory();
+ _factories[10][60] = ConnectionCloseBodyImpl.getFactory();
+ _factories[10][61] = ConnectionCloseOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Channel class.
+
+ _factories[20] = new AMQMethodBodyInstanceFactory[42];
+
+ _factories[20][10] = ChannelOpenBodyImpl.getFactory();
+ _factories[20][11] = ChannelOpenOkBodyImpl.getFactory();
+ _factories[20][20] = ChannelFlowBodyImpl.getFactory();
+ _factories[20][21] = ChannelFlowOkBodyImpl.getFactory();
+ _factories[20][30] = ChannelAlertBodyImpl.getFactory();
+ _factories[20][40] = ChannelCloseBodyImpl.getFactory();
+ _factories[20][41] = ChannelCloseOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Access class.
+
+ _factories[30] = new AMQMethodBodyInstanceFactory[12];
+
+ _factories[30][10] = AccessRequestBodyImpl.getFactory();
+ _factories[30][11] = AccessRequestOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Exchange class.
+
+ _factories[40] = new AMQMethodBodyInstanceFactory[24];
+
+ _factories[40][10] = ExchangeDeclareBodyImpl.getFactory();
+ _factories[40][11] = ExchangeDeclareOkBodyImpl.getFactory();
+ _factories[40][20] = ExchangeDeleteBodyImpl.getFactory();
+ _factories[40][21] = ExchangeDeleteOkBodyImpl.getFactory();
+ _factories[40][22] = ExchangeBoundBodyImpl.getFactory();
+ _factories[40][23] = ExchangeBoundOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Queue class.
+
+ _factories[50] = new AMQMethodBodyInstanceFactory[42];
+
+ _factories[50][10] = QueueDeclareBodyImpl.getFactory();
+ _factories[50][11] = QueueDeclareOkBodyImpl.getFactory();
+ _factories[50][20] = QueueBindBodyImpl.getFactory();
+ _factories[50][21] = QueueBindOkBodyImpl.getFactory();
+ _factories[50][30] = QueuePurgeBodyImpl.getFactory();
+ _factories[50][31] = QueuePurgeOkBodyImpl.getFactory();
+ _factories[50][40] = QueueDeleteBodyImpl.getFactory();
+ _factories[50][41] = QueueDeleteOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Basic class.
+
+ _factories[60] = new AMQMethodBodyInstanceFactory[102];
+
+ _factories[60][10] = BasicQosBodyImpl.getFactory();
+ _factories[60][11] = BasicQosOkBodyImpl.getFactory();
+ _factories[60][20] = BasicConsumeBodyImpl.getFactory();
+ _factories[60][21] = BasicConsumeOkBodyImpl.getFactory();
+ _factories[60][30] = BasicCancelBodyImpl.getFactory();
+ _factories[60][31] = BasicCancelOkBodyImpl.getFactory();
+ _factories[60][40] = BasicPublishBodyImpl.getFactory();
+ _factories[60][50] = BasicReturnBodyImpl.getFactory();
+ _factories[60][60] = BasicDeliverBodyImpl.getFactory();
+ _factories[60][70] = BasicGetBodyImpl.getFactory();
+ _factories[60][71] = BasicGetOkBodyImpl.getFactory();
+ _factories[60][72] = BasicGetEmptyBodyImpl.getFactory();
+ _factories[60][80] = BasicAckBodyImpl.getFactory();
+ _factories[60][90] = BasicRejectBodyImpl.getFactory();
+ _factories[60][100] = BasicRecoverBodyImpl.getFactory();
+ _factories[60][101] = BasicRecoverOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the File class.
+
+ _factories[70] = new AMQMethodBodyInstanceFactory[101];
+
+ _factories[70][10] = FileQosBodyImpl.getFactory();
+ _factories[70][11] = FileQosOkBodyImpl.getFactory();
+ _factories[70][20] = FileConsumeBodyImpl.getFactory();
+ _factories[70][21] = FileConsumeOkBodyImpl.getFactory();
+ _factories[70][30] = FileCancelBodyImpl.getFactory();
+ _factories[70][31] = FileCancelOkBodyImpl.getFactory();
+ _factories[70][40] = FileOpenBodyImpl.getFactory();
+ _factories[70][41] = FileOpenOkBodyImpl.getFactory();
+ _factories[70][50] = FileStageBodyImpl.getFactory();
+ _factories[70][60] = FilePublishBodyImpl.getFactory();
+ _factories[70][70] = FileReturnBodyImpl.getFactory();
+ _factories[70][80] = FileDeliverBodyImpl.getFactory();
+ _factories[70][90] = FileAckBodyImpl.getFactory();
+ _factories[70][100] = FileRejectBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Stream class.
+
+ _factories[80] = new AMQMethodBodyInstanceFactory[61];
+
+ _factories[80][10] = StreamQosBodyImpl.getFactory();
+ _factories[80][11] = StreamQosOkBodyImpl.getFactory();
+ _factories[80][20] = StreamConsumeBodyImpl.getFactory();
+ _factories[80][21] = StreamConsumeOkBodyImpl.getFactory();
+ _factories[80][30] = StreamCancelBodyImpl.getFactory();
+ _factories[80][31] = StreamCancelOkBodyImpl.getFactory();
+ _factories[80][40] = StreamPublishBodyImpl.getFactory();
+ _factories[80][50] = StreamReturnBodyImpl.getFactory();
+ _factories[80][60] = StreamDeliverBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Tx class.
+
+ _factories[90] = new AMQMethodBodyInstanceFactory[32];
+
+ _factories[90][10] = TxSelectBodyImpl.getFactory();
+ _factories[90][11] = TxSelectOkBodyImpl.getFactory();
+ _factories[90][20] = TxCommitBodyImpl.getFactory();
+ _factories[90][21] = TxCommitOkBodyImpl.getFactory();
+ _factories[90][30] = TxRollbackBodyImpl.getFactory();
+ _factories[90][31] = TxRollbackOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Dtx class.
+
+ _factories[100] = new AMQMethodBodyInstanceFactory[22];
+
+ _factories[100][10] = DtxSelectBodyImpl.getFactory();
+ _factories[100][11] = DtxSelectOkBodyImpl.getFactory();
+ _factories[100][20] = DtxStartBodyImpl.getFactory();
+ _factories[100][21] = DtxStartOkBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Tunnel class.
+
+ _factories[110] = new AMQMethodBodyInstanceFactory[11];
+
+ _factories[110][10] = TunnelRequestBodyImpl.getFactory();
+
+
+
+ // Register method body instance factories for the Test class.
+
+ _factories[120] = new AMQMethodBodyInstanceFactory[42];
+
+ _factories[120][10] = TestIntegerBodyImpl.getFactory();
+ _factories[120][11] = TestIntegerOkBodyImpl.getFactory();
+ _factories[120][20] = TestStringBodyImpl.getFactory();
+ _factories[120][21] = TestStringOkBodyImpl.getFactory();
+ _factories[120][30] = TestTableBodyImpl.getFactory();
+ _factories[120][31] = TestTableOkBodyImpl.getFactory();
+ _factories[120][40] = TestContentBodyImpl.getFactory();
+ _factories[120][41] = TestContentOkBodyImpl.getFactory();
+ }
+
+ public AMQMethodBody convertToBody(MarkableDataInput in, long size)
+ throws AMQFrameDecodingException, IOException
+ {
+ int classId = in.readUnsignedShort();
+ int methodId = in.readUnsignedShort();
+
+ AMQMethodBodyInstanceFactory bodyFactory;
+ try
+ {
+ bodyFactory = _factories[classId][methodId];
+ }
+ catch(NullPointerException e)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 8-0"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+ catch(IndexOutOfBoundsException e)
+ {
+ if(classId >= _factories.length)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Class " + classId + " unknown in AMQP version 8-0"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ else
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 8-0"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+
+ }
+ }
+
+ if (bodyFactory == null)
+ {
+ throw new AMQFrameDecodingException(AMQConstant.COMMAND_INVALID,
+ "Method " + methodId + " unknown in AMQP version 8-0"
+ + " (while trying to decode class " + classId + " method " + methodId + ".");
+ }
+
+ return bodyFactory.newInstance(in, size);
+ }
+
+ public int getMaxClassId()
+ {
+ return 120;
+ }
+
+ public int getMaxMethodId(int classId)
+ {
+ return _factories[classId].length - 1;
+ }
+
+
+
+ public ConnectionStartBody createConnectionStartBody(
+ final short versionMajor,
+ final short versionMinor,
+ final FieldTable serverProperties,
+ final byte[] mechanisms,
+ final byte[] locales
+ )
+ {
+ return new ConnectionStartBodyImpl(
+ versionMajor,
+ versionMinor,
+ serverProperties,
+ mechanisms,
+ locales
+ );
+ }
+
+ public ConnectionStartOkBody createConnectionStartOkBody(
+ final FieldTable clientProperties,
+ final AMQShortString mechanism,
+ final byte[] response,
+ final AMQShortString locale
+ )
+ {
+ return new ConnectionStartOkBodyImpl(
+ clientProperties,
+ mechanism,
+ response,
+ locale
+ );
+ }
+
+ public ConnectionSecureBody createConnectionSecureBody(
+ final byte[] challenge
+ )
+ {
+ return new ConnectionSecureBodyImpl(
+ challenge
+ );
+ }
+
+ public ConnectionSecureOkBody createConnectionSecureOkBody(
+ final byte[] response
+ )
+ {
+ return new ConnectionSecureOkBodyImpl(
+ response
+ );
+ }
+
+ public ConnectionTuneBody createConnectionTuneBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionTuneOkBody createConnectionTuneOkBody(
+ final int channelMax,
+ final long frameMax,
+ final int heartbeat
+ )
+ {
+ return new ConnectionTuneOkBodyImpl(
+ channelMax,
+ frameMax,
+ heartbeat
+ );
+ }
+
+ public ConnectionOpenBody createConnectionOpenBody(
+ final AMQShortString virtualHost,
+ final AMQShortString capabilities,
+ final boolean insist
+ )
+ {
+ return new ConnectionOpenBodyImpl(
+ virtualHost,
+ capabilities,
+ insist
+ );
+ }
+
+ public ConnectionOpenOkBody createConnectionOpenOkBody(
+ final AMQShortString knownHosts
+ )
+ {
+ return new ConnectionOpenOkBodyImpl(
+ knownHosts
+ );
+ }
+
+ public ConnectionRedirectBody createConnectionRedirectBody(
+ final AMQShortString host,
+ final AMQShortString knownHosts
+ )
+ {
+ return new ConnectionRedirectBodyImpl(
+ host,
+ knownHosts
+ );
+ }
+
+ public ConnectionCloseBody createConnectionCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ConnectionCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ConnectionCloseOkBody createConnectionCloseOkBody(
+ )
+ {
+ return new ConnectionCloseOkBodyImpl(
+ );
+ }
+
+
+
+
+ public ChannelOpenBody createChannelOpenBody(
+ final AMQShortString outOfBand
+ )
+ {
+ return new ChannelOpenBodyImpl(
+ outOfBand
+ );
+ }
+
+ public ChannelOpenOkBody createChannelOpenOkBody(
+ )
+ {
+ return new ChannelOpenOkBodyImpl(
+ );
+ }
+
+ public ChannelFlowBody createChannelFlowBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowBodyImpl(
+ active
+ );
+ }
+
+ public ChannelFlowOkBody createChannelFlowOkBody(
+ final boolean active
+ )
+ {
+ return new ChannelFlowOkBodyImpl(
+ active
+ );
+ }
+
+ public ChannelAlertBody createChannelAlertBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final FieldTable details
+ )
+ {
+ return new ChannelAlertBodyImpl(
+ replyCode,
+ replyText,
+ details
+ );
+ }
+
+ public ChannelCloseBody createChannelCloseBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final int classId,
+ final int methodId
+ )
+ {
+ return new ChannelCloseBodyImpl(
+ replyCode,
+ replyText,
+ classId,
+ methodId
+ );
+ }
+
+ public ChannelCloseOkBody createChannelCloseOkBody(
+ )
+ {
+ return new ChannelCloseOkBodyImpl(
+ );
+ }
+
+
+
+
+ public AccessRequestBody createAccessRequestBody(
+ final AMQShortString realm,
+ final boolean exclusive,
+ final boolean passive,
+ final boolean active,
+ final boolean write,
+ final boolean read
+ )
+ {
+ return new AccessRequestBodyImpl(
+ realm,
+ exclusive,
+ passive,
+ active,
+ write,
+ read
+ );
+ }
+
+ public AccessRequestOkBody createAccessRequestOkBody(
+ final int ticket
+ )
+ {
+ return new AccessRequestOkBodyImpl(
+ ticket
+ );
+ }
+
+
+
+
+ public ExchangeDeclareBody createExchangeDeclareBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString type,
+ final boolean passive,
+ final boolean durable,
+ final boolean autoDelete,
+ final boolean internal,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new ExchangeDeclareBodyImpl(
+ ticket,
+ exchange,
+ type,
+ passive,
+ durable,
+ autoDelete,
+ internal,
+ nowait,
+ arguments
+ );
+ }
+
+ public ExchangeDeclareOkBody createExchangeDeclareOkBody(
+ )
+ {
+ return new ExchangeDeclareOkBodyImpl(
+ );
+ }
+
+ public ExchangeDeleteBody createExchangeDeleteBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final boolean ifUnused,
+ final boolean nowait
+ )
+ {
+ return new ExchangeDeleteBodyImpl(
+ ticket,
+ exchange,
+ ifUnused,
+ nowait
+ );
+ }
+
+ public ExchangeDeleteOkBody createExchangeDeleteOkBody(
+ )
+ {
+ return new ExchangeDeleteOkBodyImpl(
+ );
+ }
+
+ public ExchangeBoundBody createExchangeBoundBody(
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString queue
+ )
+ {
+ return new ExchangeBoundBodyImpl(
+ exchange,
+ routingKey,
+ queue
+ );
+ }
+
+ public ExchangeBoundOkBody createExchangeBoundOkBody(
+ final int replyCode,
+ final AMQShortString replyText
+ )
+ {
+ return new ExchangeBoundOkBodyImpl(
+ replyCode,
+ replyText
+ );
+ }
+
+
+
+
+ public QueueDeclareBody createQueueDeclareBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean passive,
+ final boolean durable,
+ final boolean exclusive,
+ final boolean autoDelete,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueDeclareBodyImpl(
+ ticket,
+ queue,
+ passive,
+ durable,
+ exclusive,
+ autoDelete,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueDeclareOkBody createQueueDeclareOkBody(
+ final AMQShortString queue,
+ final long messageCount,
+ final long consumerCount
+ )
+ {
+ return new QueueDeclareOkBodyImpl(
+ queue,
+ messageCount,
+ consumerCount
+ );
+ }
+
+ public QueueBindBody createQueueBindBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new QueueBindBodyImpl(
+ ticket,
+ queue,
+ exchange,
+ routingKey,
+ nowait,
+ arguments
+ );
+ }
+
+ public QueueBindOkBody createQueueBindOkBody(
+ )
+ {
+ return new QueueBindOkBodyImpl(
+ );
+ }
+
+ public QueuePurgeBody createQueuePurgeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean nowait
+ )
+ {
+ return new QueuePurgeBodyImpl(
+ ticket,
+ queue,
+ nowait
+ );
+ }
+
+ public QueuePurgeOkBody createQueuePurgeOkBody(
+ final long messageCount
+ )
+ {
+ return new QueuePurgeOkBodyImpl(
+ messageCount
+ );
+ }
+
+ public QueueDeleteBody createQueueDeleteBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean ifUnused,
+ final boolean ifEmpty,
+ final boolean nowait
+ )
+ {
+ return new QueueDeleteBodyImpl(
+ ticket,
+ queue,
+ ifUnused,
+ ifEmpty,
+ nowait
+ );
+ }
+
+ public QueueDeleteOkBody createQueueDeleteOkBody(
+ final long messageCount
+ )
+ {
+ return new QueueDeleteOkBodyImpl(
+ messageCount
+ );
+ }
+
+
+
+
+ public BasicQosBody createBasicQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new BasicQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public BasicQosOkBody createBasicQosOkBody(
+ )
+ {
+ return new BasicQosOkBodyImpl(
+ );
+ }
+
+ public BasicConsumeBody createBasicConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait,
+ final FieldTable arguments
+ )
+ {
+ return new BasicConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ noAck,
+ exclusive,
+ nowait,
+ arguments
+ );
+ }
+
+ public BasicConsumeOkBody createBasicConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicCancelBody createBasicCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new BasicCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public BasicCancelOkBody createBasicCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new BasicCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public BasicPublishBody createBasicPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ )
+ {
+ return new BasicPublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate
+ );
+ }
+
+ public BasicReturnBody createBasicReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicDeliverBody createBasicDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new BasicDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey
+ );
+ }
+
+ public BasicGetBody createBasicGetBody(
+ final int ticket,
+ final AMQShortString queue,
+ final boolean noAck
+ )
+ {
+ return new BasicGetBodyImpl(
+ ticket,
+ queue,
+ noAck
+ );
+ }
+
+ public BasicGetOkBody createBasicGetOkBody(
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final long messageCount
+ )
+ {
+ return new BasicGetOkBodyImpl(
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey,
+ messageCount
+ );
+ }
+
+ public BasicGetEmptyBody createBasicGetEmptyBody(
+ final AMQShortString clusterId
+ )
+ {
+ return new BasicGetEmptyBodyImpl(
+ clusterId
+ );
+ }
+
+ public BasicAckBody createBasicAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ )
+ {
+ return new BasicAckBodyImpl(
+ deliveryTag,
+ multiple
+ );
+ }
+
+ public BasicRejectBody createBasicRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ )
+ {
+ return new BasicRejectBodyImpl(
+ deliveryTag,
+ requeue
+ );
+ }
+
+ public BasicRecoverBody createBasicRecoverBody(
+ final boolean requeue
+ )
+ {
+ return new BasicRecoverBodyImpl(
+ requeue
+ );
+ }
+
+ public BasicRecoverOkBody createBasicRecoverOkBody(
+ )
+ {
+ return new BasicRecoverOkBodyImpl(
+ );
+ }
+
+
+
+
+ public FileQosBody createFileQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final boolean global
+ )
+ {
+ return new FileQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ global
+ );
+ }
+
+ public FileQosOkBody createFileQosOkBody(
+ )
+ {
+ return new FileQosOkBodyImpl(
+ );
+ }
+
+ public FileConsumeBody createFileConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean noAck,
+ final boolean exclusive,
+ final boolean nowait
+ )
+ {
+ return new FileConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ noAck,
+ exclusive,
+ nowait
+ );
+ }
+
+ public FileConsumeOkBody createFileConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new FileConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public FileCancelBody createFileCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new FileCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public FileCancelOkBody createFileCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new FileCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public FileOpenBody createFileOpenBody(
+ final AMQShortString identifier,
+ final long contentSize
+ )
+ {
+ return new FileOpenBodyImpl(
+ identifier,
+ contentSize
+ );
+ }
+
+ public FileOpenOkBody createFileOpenOkBody(
+ final long stagedSize
+ )
+ {
+ return new FileOpenOkBodyImpl(
+ stagedSize
+ );
+ }
+
+ public FileStageBody createFileStageBody(
+ )
+ {
+ return new FileStageBodyImpl(
+ );
+ }
+
+ public FilePublishBody createFilePublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate,
+ final AMQShortString identifier
+ )
+ {
+ return new FilePublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate,
+ identifier
+ );
+ }
+
+ public FileReturnBody createFileReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new FileReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public FileDeliverBody createFileDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final boolean redelivered,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final AMQShortString identifier
+ )
+ {
+ return new FileDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ redelivered,
+ exchange,
+ routingKey,
+ identifier
+ );
+ }
+
+ public FileAckBody createFileAckBody(
+ final long deliveryTag,
+ final boolean multiple
+ )
+ {
+ return new FileAckBodyImpl(
+ deliveryTag,
+ multiple
+ );
+ }
+
+ public FileRejectBody createFileRejectBody(
+ final long deliveryTag,
+ final boolean requeue
+ )
+ {
+ return new FileRejectBodyImpl(
+ deliveryTag,
+ requeue
+ );
+ }
+
+
+
+
+ public StreamQosBody createStreamQosBody(
+ final long prefetchSize,
+ final int prefetchCount,
+ final long consumeRate,
+ final boolean global
+ )
+ {
+ return new StreamQosBodyImpl(
+ prefetchSize,
+ prefetchCount,
+ consumeRate,
+ global
+ );
+ }
+
+ public StreamQosOkBody createStreamQosOkBody(
+ )
+ {
+ return new StreamQosOkBodyImpl(
+ );
+ }
+
+ public StreamConsumeBody createStreamConsumeBody(
+ final int ticket,
+ final AMQShortString queue,
+ final AMQShortString consumerTag,
+ final boolean noLocal,
+ final boolean exclusive,
+ final boolean nowait
+ )
+ {
+ return new StreamConsumeBodyImpl(
+ ticket,
+ queue,
+ consumerTag,
+ noLocal,
+ exclusive,
+ nowait
+ );
+ }
+
+ public StreamConsumeOkBody createStreamConsumeOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new StreamConsumeOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public StreamCancelBody createStreamCancelBody(
+ final AMQShortString consumerTag,
+ final boolean nowait
+ )
+ {
+ return new StreamCancelBodyImpl(
+ consumerTag,
+ nowait
+ );
+ }
+
+ public StreamCancelOkBody createStreamCancelOkBody(
+ final AMQShortString consumerTag
+ )
+ {
+ return new StreamCancelOkBodyImpl(
+ consumerTag
+ );
+ }
+
+ public StreamPublishBody createStreamPublishBody(
+ final int ticket,
+ final AMQShortString exchange,
+ final AMQShortString routingKey,
+ final boolean mandatory,
+ final boolean immediate
+ )
+ {
+ return new StreamPublishBodyImpl(
+ ticket,
+ exchange,
+ routingKey,
+ mandatory,
+ immediate
+ );
+ }
+
+ public StreamReturnBody createStreamReturnBody(
+ final int replyCode,
+ final AMQShortString replyText,
+ final AMQShortString exchange,
+ final AMQShortString routingKey
+ )
+ {
+ return new StreamReturnBodyImpl(
+ replyCode,
+ replyText,
+ exchange,
+ routingKey
+ );
+ }
+
+ public StreamDeliverBody createStreamDeliverBody(
+ final AMQShortString consumerTag,
+ final long deliveryTag,
+ final AMQShortString exchange,
+ final AMQShortString queue
+ )
+ {
+ return new StreamDeliverBodyImpl(
+ consumerTag,
+ deliveryTag,
+ exchange,
+ queue
+ );
+ }
+
+
+
+
+ public TxSelectBody createTxSelectBody(
+ )
+ {
+ return new TxSelectBodyImpl(
+ );
+ }
+
+ public TxSelectOkBody createTxSelectOkBody(
+ )
+ {
+ return new TxSelectOkBodyImpl(
+ );
+ }
+
+ public TxCommitBody createTxCommitBody(
+ )
+ {
+ return new TxCommitBodyImpl(
+ );
+ }
+
+ public TxCommitOkBody createTxCommitOkBody(
+ )
+ {
+ return new TxCommitOkBodyImpl(
+ );
+ }
+
+ public TxRollbackBody createTxRollbackBody(
+ )
+ {
+ return new TxRollbackBodyImpl(
+ );
+ }
+
+ public TxRollbackOkBody createTxRollbackOkBody(
+ )
+ {
+ return new TxRollbackOkBodyImpl(
+ );
+ }
+
+
+
+
+ public DtxSelectBody createDtxSelectBody(
+ )
+ {
+ return new DtxSelectBodyImpl(
+ );
+ }
+
+ public DtxSelectOkBody createDtxSelectOkBody(
+ )
+ {
+ return new DtxSelectOkBodyImpl(
+ );
+ }
+
+ public DtxStartBody createDtxStartBody(
+ final AMQShortString dtxIdentifier
+ )
+ {
+ return new DtxStartBodyImpl(
+ dtxIdentifier
+ );
+ }
+
+ public DtxStartOkBody createDtxStartOkBody(
+ )
+ {
+ return new DtxStartOkBodyImpl(
+ );
+ }
+
+
+
+
+ public TunnelRequestBody createTunnelRequestBody(
+ final FieldTable metaData
+ )
+ {
+ return new TunnelRequestBodyImpl(
+ metaData
+ );
+ }
+
+
+
+
+ public TestIntegerBody createTestIntegerBody(
+ final short integer1,
+ final int integer2,
+ final long integer3,
+ final long integer4,
+ final short operation
+ )
+ {
+ return new TestIntegerBodyImpl(
+ integer1,
+ integer2,
+ integer3,
+ integer4,
+ operation
+ );
+ }
+
+ public TestIntegerOkBody createTestIntegerOkBody(
+ final long result
+ )
+ {
+ return new TestIntegerOkBodyImpl(
+ result
+ );
+ }
+
+ public TestStringBody createTestStringBody(
+ final AMQShortString string1,
+ final byte[] string2,
+ final short operation
+ )
+ {
+ return new TestStringBodyImpl(
+ string1,
+ string2,
+ operation
+ );
+ }
+
+ public TestStringOkBody createTestStringOkBody(
+ final byte[] result
+ )
+ {
+ return new TestStringOkBodyImpl(
+ result
+ );
+ }
+
+ public TestTableBody createTestTableBody(
+ final FieldTable table,
+ final short integerOp,
+ final short stringOp
+ )
+ {
+ return new TestTableBodyImpl(
+ table,
+ integerOp,
+ stringOp
+ );
+ }
+
+ public TestTableOkBody createTestTableOkBody(
+ final long integerResult,
+ final byte[] stringResult
+ )
+ {
+ return new TestTableOkBodyImpl(
+ integerResult,
+ stringResult
+ );
+ }
+
+ public TestContentBody createTestContentBody(
+ )
+ {
+ return new TestContentBodyImpl(
+ );
+ }
+
+ public TestContentOkBody createTestContentOkBody(
+ final long contentChecksum
+ )
+ {
+ return new TestContentOkBodyImpl(
+ contentChecksum
+ );
+ }
+
+
+
+ public ProtocolVersionMethodConverter getProtocolVersionMethodConverter()
+ {
+ return _protocolVersionConverter;
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindBodyImpl.java
new file mode 100644
index 0000000000..b4acb6ae06
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindBodyImpl.java
@@ -0,0 +1,181 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindBodyImpl extends AMQMethodBody_8_0 implements QueueBindBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueBindBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueBindBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueBind(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindOkBodyImpl.java
new file mode 100644
index 0000000000..6a0b78db2d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueBindOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueBindOkBodyImpl extends AMQMethodBody_8_0 implements QueueBindOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueBindOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public QueueBindOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public QueueBindOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueBindOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueBindOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareBodyImpl.java
new file mode 100644
index 0000000000..4e835bd12b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareBodyImpl.java
@@ -0,0 +1,207 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareBodyImpl extends AMQMethodBody_8_0 implements QueueDeclareBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [passive, durable, exclusive, autoDelete, nowait]
+ private final FieldTable _arguments; // [arguments]
+
+ // Constructor
+ public QueueDeclareBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ _arguments = readFieldTable( buffer );
+ }
+
+ public QueueDeclareBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean passive,
+ boolean durable,
+ boolean exclusive,
+ boolean autoDelete,
+ boolean nowait,
+ FieldTable arguments
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( passive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( durable )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+
+ if( autoDelete )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 3));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 4));
+ }
+
+ _bitfield0 = bitfield0;
+ _arguments = arguments;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getPassive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getDurable()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+ public final boolean getAutoDelete()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 3)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 4)) != 0;
+ }
+ public final FieldTable getArguments()
+ {
+ return _arguments;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _arguments );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ writeFieldTable( buffer, _arguments );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueDeclare(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "passive=" );
+ buf.append( getPassive() );
+ buf.append( ", " );
+ buf.append( "durable=" );
+ buf.append( getDurable() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "autoDelete=" );
+ buf.append( getAutoDelete() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append( ", " );
+ buf.append( "arguments=" );
+ buf.append( getArguments() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareOkBodyImpl.java
new file mode 100644
index 0000000000..09abf5865e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeclareOkBodyImpl.java
@@ -0,0 +1,136 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeclareOkBodyImpl extends AMQMethodBody_8_0 implements QueueDeclareOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeclareOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final AMQShortString _queue; // [queue]
+ private final long _messageCount; // [messageCount]
+ private final long _consumerCount; // [consumerCount]
+
+ // Constructor
+ public QueueDeclareOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _queue = readAMQShortString( buffer );
+ _messageCount = readUnsignedInteger( buffer );
+ _consumerCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeclareOkBodyImpl(
+ AMQShortString queue,
+ long messageCount,
+ long consumerCount
+ )
+ {
+ _queue = queue;
+ _messageCount = messageCount;
+ _consumerCount = consumerCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+ public final long getConsumerCount()
+ {
+ return _consumerCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _queue );
+ writeUnsignedInteger( buffer, _messageCount );
+ writeUnsignedInteger( buffer, _consumerCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueDeclareOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeclareOkBodyImpl: ");
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append( ", " );
+ buf.append( "consumerCount=" );
+ buf.append( getConsumerCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteBodyImpl.java
new file mode 100644
index 0000000000..ada079c4c1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteBodyImpl extends AMQMethodBody_8_0 implements QueueDeleteBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [ifUnused, ifEmpty, nowait]
+
+ // Constructor
+ public QueueDeleteBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueueDeleteBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean ifUnused,
+ boolean ifEmpty,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( ifUnused )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( ifEmpty )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getIfUnused()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getIfEmpty()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueDelete(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "ifUnused=" );
+ buf.append( getIfUnused() );
+ buf.append( ", " );
+ buf.append( "ifEmpty=" );
+ buf.append( getIfEmpty() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteOkBodyImpl.java
new file mode 100644
index 0000000000..54eea482fa
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueueDeleteOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueueDeleteOkBodyImpl extends AMQMethodBody_8_0 implements QueueDeleteOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueueDeleteOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueueDeleteOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueueDeleteOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueueDeleteOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueueDeleteOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeBodyImpl.java
new file mode 100644
index 0000000000..ae4f9d3483
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeBodyImpl.java
@@ -0,0 +1,141 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeBodyImpl extends AMQMethodBody_8_0 implements QueuePurgeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public QueuePurgeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public QueuePurgeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueuePurge(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeOkBodyImpl.java
new file mode 100644
index 0000000000..576e175044
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/QueuePurgeOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class QueuePurgeOkBodyImpl extends AMQMethodBody_8_0 implements QueuePurgeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new QueuePurgeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 50;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final long _messageCount; // [messageCount]
+
+ // Constructor
+ public QueuePurgeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _messageCount = readUnsignedInteger( buffer );
+ }
+
+ public QueuePurgeOkBodyImpl(
+ long messageCount
+ )
+ {
+ _messageCount = messageCount;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getMessageCount()
+ {
+ return _messageCount;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _messageCount );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchQueuePurgeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[QueuePurgeOkBodyImpl: ");
+ buf.append( "messageCount=" );
+ buf.append( getMessageCount() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ServerMethodDispatcher_8_0.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ServerMethodDispatcher_8_0.java
new file mode 100644
index 0000000000..5c8ad68cd0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/ServerMethodDispatcher_8_0.java
@@ -0,0 +1,92 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.AMQException;
+import org.apache.qpid.framing.*;
+
+
+public interface ServerMethodDispatcher_8_0 extends ServerMethodDispatcher
+{
+
+ public boolean dispatchAccessRequest(AccessRequestBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicAck(BasicAckBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicCancel(BasicCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicConsume(BasicConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicGet(BasicGetBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicPublish(BasicPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicQos(BasicQosBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicRecover(BasicRecoverBody body, int channelId) throws AMQException;
+ public boolean dispatchBasicReject(BasicRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelClose(ChannelCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelCloseOk(ChannelCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlow(ChannelFlowBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelFlowOk(ChannelFlowOkBody body, int channelId) throws AMQException;
+ public boolean dispatchChannelOpen(ChannelOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionClose(ConnectionCloseBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionCloseOk(ConnectionCloseOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionOpen(ConnectionOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionSecureOk(ConnectionSecureOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionStartOk(ConnectionStartOkBody body, int channelId) throws AMQException;
+ public boolean dispatchConnectionTuneOk(ConnectionTuneOkBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxSelect(DtxSelectBody body, int channelId) throws AMQException;
+ public boolean dispatchDtxStart(DtxStartBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeBound(ExchangeBoundBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDeclare(ExchangeDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchExchangeDelete(ExchangeDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchFileAck(FileAckBody body, int channelId) throws AMQException;
+ public boolean dispatchFileCancel(FileCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchFileConsume(FileConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpen(FileOpenBody body, int channelId) throws AMQException;
+ public boolean dispatchFileOpenOk(FileOpenOkBody body, int channelId) throws AMQException;
+ public boolean dispatchFilePublish(FilePublishBody body, int channelId) throws AMQException;
+ public boolean dispatchFileQos(FileQosBody body, int channelId) throws AMQException;
+ public boolean dispatchFileReject(FileRejectBody body, int channelId) throws AMQException;
+ public boolean dispatchFileStage(FileStageBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueBind(QueueBindBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDeclare(QueueDeclareBody body, int channelId) throws AMQException;
+ public boolean dispatchQueueDelete(QueueDeleteBody body, int channelId) throws AMQException;
+ public boolean dispatchQueuePurge(QueuePurgeBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamCancel(StreamCancelBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamConsume(StreamConsumeBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamPublish(StreamPublishBody body, int channelId) throws AMQException;
+ public boolean dispatchStreamQos(StreamQosBody body, int channelId) throws AMQException;
+ public boolean dispatchTestContent(TestContentBody body, int channelId) throws AMQException;
+ public boolean dispatchTestContentOk(TestContentOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestInteger(TestIntegerBody body, int channelId) throws AMQException;
+ public boolean dispatchTestIntegerOk(TestIntegerOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestString(TestStringBody body, int channelId) throws AMQException;
+ public boolean dispatchTestStringOk(TestStringOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTestTable(TestTableBody body, int channelId) throws AMQException;
+ public boolean dispatchTestTableOk(TestTableOkBody body, int channelId) throws AMQException;
+ public boolean dispatchTunnelRequest(TunnelRequestBody body, int channelId) throws AMQException;
+ public boolean dispatchTxCommit(TxCommitBody body, int channelId) throws AMQException;
+ public boolean dispatchTxRollback(TxRollbackBody body, int channelId) throws AMQException;
+ public boolean dispatchTxSelect(TxSelectBody body, int channelId) throws AMQException;
+
+} \ No newline at end of file
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelBodyImpl.java
new file mode 100644
index 0000000000..80032c93da
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelBodyImpl.java
@@ -0,0 +1,129 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamCancelBodyImpl extends AMQMethodBody_8_0 implements StreamCancelBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamCancelBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [nowait]
+
+ // Constructor
+ public StreamCancelBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamCancelBodyImpl(
+ AMQShortString consumerTag,
+ boolean nowait
+ )
+ {
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamCancel(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamCancelBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelOkBodyImpl.java
new file mode 100644
index 0000000000..f7d5f28269
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamCancelOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamCancelOkBodyImpl extends AMQMethodBody_8_0 implements StreamCancelOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamCancelOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public StreamCancelOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public StreamCancelOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamCancelOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamCancelOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeBodyImpl.java
new file mode 100644
index 0000000000..2e55068f1d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeBodyImpl.java
@@ -0,0 +1,180 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamConsumeBodyImpl extends AMQMethodBody_8_0 implements StreamConsumeBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamConsumeBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _queue; // [queue]
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final byte _bitfield0; // [noLocal, exclusive, nowait]
+
+ // Constructor
+ public StreamConsumeBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _queue = readAMQShortString( buffer );
+ _consumerTag = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamConsumeBodyImpl(
+ int ticket,
+ AMQShortString queue,
+ AMQShortString consumerTag,
+ boolean noLocal,
+ boolean exclusive,
+ boolean nowait
+ )
+ {
+ _ticket = ticket;
+ _queue = queue;
+ _consumerTag = consumerTag;
+ byte bitfield0 = (byte)0;
+ if( noLocal )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( exclusive )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+
+ if( nowait )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 2));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final boolean getNoLocal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getExclusive()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+ public final boolean getNowait()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 2)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _queue );
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _queue );
+ writeAMQShortString( buffer, _consumerTag );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamConsume(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamConsumeBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append( ", " );
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "noLocal=" );
+ buf.append( getNoLocal() );
+ buf.append( ", " );
+ buf.append( "exclusive=" );
+ buf.append( getExclusive() );
+ buf.append( ", " );
+ buf.append( "nowait=" );
+ buf.append( getNowait() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeOkBodyImpl.java
new file mode 100644
index 0000000000..052efc1fdd
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamConsumeOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamConsumeOkBodyImpl extends AMQMethodBody_8_0 implements StreamConsumeOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamConsumeOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+
+ // Constructor
+ public StreamConsumeOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ }
+
+ public StreamConsumeOkBodyImpl(
+ AMQShortString consumerTag
+ )
+ {
+ _consumerTag = consumerTag;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _consumerTag );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamConsumeOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamConsumeOkBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamDeliverBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamDeliverBodyImpl.java
new file mode 100644
index 0000000000..8bbde690a0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamDeliverBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamDeliverBodyImpl extends AMQMethodBody_8_0 implements StreamDeliverBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamDeliverBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 60;
+
+ // Fields declared in specification
+ private final AMQShortString _consumerTag; // [consumerTag]
+ private final long _deliveryTag; // [deliveryTag]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _queue; // [queue]
+
+ // Constructor
+ public StreamDeliverBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _consumerTag = readAMQShortString( buffer );
+ _deliveryTag = readLong( buffer );
+ _exchange = readAMQShortString( buffer );
+ _queue = readAMQShortString( buffer );
+ }
+
+ public StreamDeliverBodyImpl(
+ AMQShortString consumerTag,
+ long deliveryTag,
+ AMQShortString exchange,
+ AMQShortString queue
+ )
+ {
+ _consumerTag = consumerTag;
+ _deliveryTag = deliveryTag;
+ _exchange = exchange;
+ _queue = queue;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getConsumerTag()
+ {
+ return _consumerTag;
+ }
+ public final long getDeliveryTag()
+ {
+ return _deliveryTag;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getQueue()
+ {
+ return _queue;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _consumerTag );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _queue );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _consumerTag );
+ writeLong( buffer, _deliveryTag );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _queue );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamDeliver(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamDeliverBodyImpl: ");
+ buf.append( "consumerTag=" );
+ buf.append( getConsumerTag() );
+ buf.append( ", " );
+ buf.append( "deliveryTag=" );
+ buf.append( getDeliveryTag() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "queue=" );
+ buf.append( getQueue() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamPublishBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamPublishBodyImpl.java
new file mode 100644
index 0000000000..6977e839ff
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamPublishBodyImpl.java
@@ -0,0 +1,167 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamPublishBodyImpl extends AMQMethodBody_8_0 implements StreamPublishBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamPublishBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+ private final int _ticket; // [ticket]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+ private final byte _bitfield0; // [mandatory, immediate]
+
+ // Constructor
+ public StreamPublishBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _ticket = readUnsignedShort( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamPublishBodyImpl(
+ int ticket,
+ AMQShortString exchange,
+ AMQShortString routingKey,
+ boolean mandatory,
+ boolean immediate
+ )
+ {
+ _ticket = ticket;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ byte bitfield0 = (byte)0;
+ if( mandatory )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+
+ if( immediate )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 1));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getTicket()
+ {
+ return _ticket;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+ public final boolean getMandatory()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+ public final boolean getImmediate()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 1)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 3;
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _ticket );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamPublish(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamPublishBodyImpl: ");
+ buf.append( "ticket=" );
+ buf.append( getTicket() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append( ", " );
+ buf.append( "mandatory=" );
+ buf.append( getMandatory() );
+ buf.append( ", " );
+ buf.append( "immediate=" );
+ buf.append( getImmediate() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosBodyImpl.java
new file mode 100644
index 0000000000..50fe23c170
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosBodyImpl.java
@@ -0,0 +1,152 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamQosBodyImpl extends AMQMethodBody_8_0 implements StreamQosBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamQosBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final long _prefetchSize; // [prefetchSize]
+ private final int _prefetchCount; // [prefetchCount]
+ private final long _consumeRate; // [consumeRate]
+ private final byte _bitfield0; // [global]
+
+ // Constructor
+ public StreamQosBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _prefetchSize = readUnsignedInteger( buffer );
+ _prefetchCount = readUnsignedShort( buffer );
+ _consumeRate = readUnsignedInteger( buffer );
+ _bitfield0 = readBitfield( buffer );
+ }
+
+ public StreamQosBodyImpl(
+ long prefetchSize,
+ int prefetchCount,
+ long consumeRate,
+ boolean global
+ )
+ {
+ _prefetchSize = prefetchSize;
+ _prefetchCount = prefetchCount;
+ _consumeRate = consumeRate;
+ byte bitfield0 = (byte)0;
+ if( global )
+ {
+ bitfield0 = (byte) (((int) bitfield0) | (1 << 0));
+ }
+ _bitfield0 = bitfield0;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getPrefetchSize()
+ {
+ return _prefetchSize;
+ }
+ public final int getPrefetchCount()
+ {
+ return _prefetchCount;
+ }
+ public final long getConsumeRate()
+ {
+ return _consumeRate;
+ }
+ public final boolean getGlobal()
+ {
+ return (((int)(_bitfield0)) & ( 1 << 0)) != 0;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 11;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _prefetchSize );
+ writeUnsignedShort( buffer, _prefetchCount );
+ writeUnsignedInteger( buffer, _consumeRate );
+ writeBitfield( buffer, _bitfield0 );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamQos(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamQosBodyImpl: ");
+ buf.append( "prefetchSize=" );
+ buf.append( getPrefetchSize() );
+ buf.append( ", " );
+ buf.append( "prefetchCount=" );
+ buf.append( getPrefetchCount() );
+ buf.append( ", " );
+ buf.append( "consumeRate=" );
+ buf.append( getConsumeRate() );
+ buf.append( ", " );
+ buf.append( "global=" );
+ buf.append( getGlobal() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosOkBodyImpl.java
new file mode 100644
index 0000000000..6f8977e4eb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamQosOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamQosOkBodyImpl extends AMQMethodBody_8_0 implements StreamQosOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamQosOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public StreamQosOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public StreamQosOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamQosOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamQosOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamReturnBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamReturnBodyImpl.java
new file mode 100644
index 0000000000..7b79956958
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/StreamReturnBodyImpl.java
@@ -0,0 +1,150 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class StreamReturnBodyImpl extends AMQMethodBody_8_0 implements StreamReturnBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new StreamReturnBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 80;
+ public static final int METHOD_ID = 50;
+
+ // Fields declared in specification
+ private final int _replyCode; // [replyCode]
+ private final AMQShortString _replyText; // [replyText]
+ private final AMQShortString _exchange; // [exchange]
+ private final AMQShortString _routingKey; // [routingKey]
+
+ // Constructor
+ public StreamReturnBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _replyCode = readUnsignedShort( buffer );
+ _replyText = readAMQShortString( buffer );
+ _exchange = readAMQShortString( buffer );
+ _routingKey = readAMQShortString( buffer );
+ }
+
+ public StreamReturnBodyImpl(
+ int replyCode,
+ AMQShortString replyText,
+ AMQShortString exchange,
+ AMQShortString routingKey
+ )
+ {
+ _replyCode = replyCode;
+ _replyText = replyText;
+ _exchange = exchange;
+ _routingKey = routingKey;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final int getReplyCode()
+ {
+ return _replyCode;
+ }
+ public final AMQShortString getReplyText()
+ {
+ return _replyText;
+ }
+ public final AMQShortString getExchange()
+ {
+ return _exchange;
+ }
+ public final AMQShortString getRoutingKey()
+ {
+ return _routingKey;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _replyText );
+ size += getSizeOf( _exchange );
+ size += getSizeOf( _routingKey );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedShort( buffer, _replyCode );
+ writeAMQShortString( buffer, _replyText );
+ writeAMQShortString( buffer, _exchange );
+ writeAMQShortString( buffer, _routingKey );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchStreamReturn(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[StreamReturnBodyImpl: ");
+ buf.append( "replyCode=" );
+ buf.append( getReplyCode() );
+ buf.append( ", " );
+ buf.append( "replyText=" );
+ buf.append( getReplyText() );
+ buf.append( ", " );
+ buf.append( "exchange=" );
+ buf.append( getExchange() );
+ buf.append( ", " );
+ buf.append( "routingKey=" );
+ buf.append( getRoutingKey() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentBodyImpl.java
new file mode 100644
index 0000000000..832ee12e2c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestContentBodyImpl extends AMQMethodBody_8_0 implements TestContentBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestContentBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 40;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TestContentBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TestContentBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestContent(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestContentBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentOkBodyImpl.java
new file mode 100644
index 0000000000..32c9e92c2f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestContentOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestContentOkBodyImpl extends AMQMethodBody_8_0 implements TestContentOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestContentOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 41;
+
+ // Fields declared in specification
+ private final long _contentChecksum; // [contentChecksum]
+
+ // Constructor
+ public TestContentOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _contentChecksum = readUnsignedInteger( buffer );
+ }
+
+ public TestContentOkBodyImpl(
+ long contentChecksum
+ )
+ {
+ _contentChecksum = contentChecksum;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getContentChecksum()
+ {
+ return _contentChecksum;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 4;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedInteger( buffer, _contentChecksum );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestContentOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestContentOkBodyImpl: ");
+ buf.append( "contentChecksum=" );
+ buf.append( getContentChecksum() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerBodyImpl.java
new file mode 100644
index 0000000000..8d01d2d4d8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerBodyImpl.java
@@ -0,0 +1,159 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestIntegerBodyImpl extends AMQMethodBody_8_0 implements TestIntegerBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestIntegerBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final short _integer1; // [integer1]
+ private final int _integer2; // [integer2]
+ private final long _integer3; // [integer3]
+ private final long _integer4; // [integer4]
+ private final short _operation; // [operation]
+
+ // Constructor
+ public TestIntegerBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _integer1 = readUnsignedByte( buffer );
+ _integer2 = readUnsignedShort( buffer );
+ _integer3 = readUnsignedInteger( buffer );
+ _integer4 = readLong( buffer );
+ _operation = readUnsignedByte( buffer );
+ }
+
+ public TestIntegerBodyImpl(
+ short integer1,
+ int integer2,
+ long integer3,
+ long integer4,
+ short operation
+ )
+ {
+ _integer1 = integer1;
+ _integer2 = integer2;
+ _integer3 = integer3;
+ _integer4 = integer4;
+ _operation = operation;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final short getInteger1()
+ {
+ return _integer1;
+ }
+ public final int getInteger2()
+ {
+ return _integer2;
+ }
+ public final long getInteger3()
+ {
+ return _integer3;
+ }
+ public final long getInteger4()
+ {
+ return _integer4;
+ }
+ public final short getOperation()
+ {
+ return _operation;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 16;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeUnsignedByte( buffer, _integer1 );
+ writeUnsignedShort( buffer, _integer2 );
+ writeUnsignedInteger( buffer, _integer3 );
+ writeLong( buffer, _integer4 );
+ writeUnsignedByte( buffer, _operation );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestInteger(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestIntegerBodyImpl: ");
+ buf.append( "integer1=" );
+ buf.append( getInteger1() );
+ buf.append( ", " );
+ buf.append( "integer2=" );
+ buf.append( getInteger2() );
+ buf.append( ", " );
+ buf.append( "integer3=" );
+ buf.append( getInteger3() );
+ buf.append( ", " );
+ buf.append( "integer4=" );
+ buf.append( getInteger4() );
+ buf.append( ", " );
+ buf.append( "operation=" );
+ buf.append( getOperation() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerOkBodyImpl.java
new file mode 100644
index 0000000000..b46b6c74d4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestIntegerOkBodyImpl.java
@@ -0,0 +1,111 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestIntegerOkBodyImpl extends AMQMethodBody_8_0 implements TestIntegerOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestIntegerOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+ private final long _result; // [result]
+
+ // Constructor
+ public TestIntegerOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _result = readLong( buffer );
+ }
+
+ public TestIntegerOkBodyImpl(
+ long result
+ )
+ {
+ _result = result;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getResult()
+ {
+ return _result;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _result );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestIntegerOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestIntegerOkBodyImpl: ");
+ buf.append( "result=" );
+ buf.append( getResult() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringBodyImpl.java
new file mode 100644
index 0000000000..8bdb72d58a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringBodyImpl.java
@@ -0,0 +1,137 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestStringBodyImpl extends AMQMethodBody_8_0 implements TestStringBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestStringBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+ private final AMQShortString _string1; // [string1]
+ private final byte[] _string2; // [string2]
+ private final short _operation; // [operation]
+
+ // Constructor
+ public TestStringBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _string1 = readAMQShortString( buffer );
+ _string2 = readBytes( buffer );
+ _operation = readUnsignedByte( buffer );
+ }
+
+ public TestStringBodyImpl(
+ AMQShortString string1,
+ byte[] string2,
+ short operation
+ )
+ {
+ _string1 = string1;
+ _string2 = string2;
+ _operation = operation;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final AMQShortString getString1()
+ {
+ return _string1;
+ }
+ public final byte[] getString2()
+ {
+ return _string2;
+ }
+ public final short getOperation()
+ {
+ return _operation;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 1;
+ size += getSizeOf( _string1 );
+ size += getSizeOf( _string2 );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeAMQShortString( buffer, _string1 );
+ writeBytes( buffer, _string2 );
+ writeUnsignedByte( buffer, _operation );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestString(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestStringBodyImpl: ");
+ buf.append( "string1=" );
+ buf.append( getString1() );
+ buf.append( ", " );
+ buf.append( "string2=" );
+ buf.append( getString2() == null ? "null" : java.util.Arrays.toString( getString2() ) );
+ buf.append( ", " );
+ buf.append( "operation=" );
+ buf.append( getOperation() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringOkBodyImpl.java
new file mode 100644
index 0000000000..be927e13ea
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestStringOkBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestStringOkBodyImpl extends AMQMethodBody_8_0 implements TestStringOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestStringOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+ private final byte[] _result; // [result]
+
+ // Constructor
+ public TestStringOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _result = readBytes( buffer );
+ }
+
+ public TestStringOkBodyImpl(
+ byte[] result
+ )
+ {
+ _result = result;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final byte[] getResult()
+ {
+ return _result;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _result );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeBytes( buffer, _result );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestStringOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestStringOkBodyImpl: ");
+ buf.append( "result=" );
+ buf.append( getResult() == null ? "null" : java.util.Arrays.toString( getResult() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableBodyImpl.java
new file mode 100644
index 0000000000..5c4b9e8d33
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableBodyImpl.java
@@ -0,0 +1,136 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestTableBodyImpl extends AMQMethodBody_8_0 implements TestTableBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestTableBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+ private final FieldTable _table; // [table]
+ private final short _integerOp; // [integerOp]
+ private final short _stringOp; // [stringOp]
+
+ // Constructor
+ public TestTableBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _table = readFieldTable( buffer );
+ _integerOp = readUnsignedByte( buffer );
+ _stringOp = readUnsignedByte( buffer );
+ }
+
+ public TestTableBodyImpl(
+ FieldTable table,
+ short integerOp,
+ short stringOp
+ )
+ {
+ _table = table;
+ _integerOp = integerOp;
+ _stringOp = stringOp;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getTable()
+ {
+ return _table;
+ }
+ public final short getIntegerOp()
+ {
+ return _integerOp;
+ }
+ public final short getStringOp()
+ {
+ return _stringOp;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 2;
+ size += getSizeOf( _table );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _table );
+ writeUnsignedByte( buffer, _integerOp );
+ writeUnsignedByte( buffer, _stringOp );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestTable(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestTableBodyImpl: ");
+ buf.append( "table=" );
+ buf.append( getTable() );
+ buf.append( ", " );
+ buf.append( "integerOp=" );
+ buf.append( getIntegerOp() );
+ buf.append( ", " );
+ buf.append( "stringOp=" );
+ buf.append( getStringOp() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableOkBodyImpl.java
new file mode 100644
index 0000000000..ea16a3b157
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TestTableOkBodyImpl.java
@@ -0,0 +1,124 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TestTableOkBodyImpl extends AMQMethodBody_8_0 implements TestTableOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TestTableOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 120;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+ private final long _integerResult; // [integerResult]
+ private final byte[] _stringResult; // [stringResult]
+
+ // Constructor
+ public TestTableOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _integerResult = readLong( buffer );
+ _stringResult = readBytes( buffer );
+ }
+
+ public TestTableOkBodyImpl(
+ long integerResult,
+ byte[] stringResult
+ )
+ {
+ _integerResult = integerResult;
+ _stringResult = stringResult;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final long getIntegerResult()
+ {
+ return _integerResult;
+ }
+ public final byte[] getStringResult()
+ {
+ return _stringResult;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 8;
+ size += getSizeOf( _stringResult );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeLong( buffer, _integerResult );
+ writeBytes( buffer, _stringResult );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTestTableOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TestTableOkBodyImpl: ");
+ buf.append( "integerResult=" );
+ buf.append( getIntegerResult() );
+ buf.append( ", " );
+ buf.append( "stringResult=" );
+ buf.append( getStringResult() == null ? "null" : java.util.Arrays.toString( getStringResult() ) );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TunnelRequestBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TunnelRequestBodyImpl.java
new file mode 100644
index 0000000000..5bb0e64ec8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TunnelRequestBodyImpl.java
@@ -0,0 +1,112 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TunnelRequestBodyImpl extends AMQMethodBody_8_0 implements TunnelRequestBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TunnelRequestBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 110;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+ private final FieldTable _metaData; // [metaData]
+
+ // Constructor
+ public TunnelRequestBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ _metaData = readFieldTable( buffer );
+ }
+
+ public TunnelRequestBodyImpl(
+ FieldTable metaData
+ )
+ {
+ _metaData = metaData;
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+ public final FieldTable getMetaData()
+ {
+ return _metaData;
+ }
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ size += getSizeOf( _metaData );
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ writeFieldTable( buffer, _metaData );
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTunnelRequest(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TunnelRequestBodyImpl: ");
+ buf.append( "metaData=" );
+ buf.append( getMetaData() );
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitBodyImpl.java
new file mode 100644
index 0000000000..096c401c02
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitBodyImpl extends AMQMethodBody_8_0 implements TxCommitBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 20;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxCommit(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitOkBodyImpl.java
new file mode 100644
index 0000000000..76274be34a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxCommitOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxCommitOkBodyImpl extends AMQMethodBody_8_0 implements TxCommitOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxCommitOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 21;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxCommitOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxCommitOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxCommitOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxCommitOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackBodyImpl.java
new file mode 100644
index 0000000000..f68f881861
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackBodyImpl extends AMQMethodBody_8_0 implements TxRollbackBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 30;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxRollback(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackOkBodyImpl.java
new file mode 100644
index 0000000000..7ec3d8b83b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxRollbackOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxRollbackOkBodyImpl extends AMQMethodBody_8_0 implements TxRollbackOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxRollbackOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 31;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxRollbackOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxRollbackOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxRollbackOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxRollbackOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectBodyImpl.java
new file mode 100644
index 0000000000..69f4dd2ec5
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectBodyImpl extends AMQMethodBody_8_0 implements TxSelectBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 10;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxSelect(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectOkBodyImpl.java b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectOkBodyImpl.java
new file mode 100644
index 0000000000..fc1279c908
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/framing/amqp_8_0/TxSelectOkBodyImpl.java
@@ -0,0 +1,100 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * This file is auto-generated by Qpid Gentools v.0.1 - do not modify.
+ * Supported AMQP version:
+ * 8-0
+ */
+
+package org.apache.qpid.framing.amqp_8_0;
+
+import org.apache.qpid.codec.MarkableDataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.qpid.framing.*;
+import org.apache.qpid.AMQException;
+
+public class TxSelectOkBodyImpl extends AMQMethodBody_8_0 implements TxSelectOkBody
+{
+ private static final AMQMethodBodyInstanceFactory FACTORY_INSTANCE = new AMQMethodBodyInstanceFactory()
+ {
+ public AMQMethodBody newInstance(MarkableDataInput in, long size) throws AMQFrameDecodingException, IOException
+ {
+ return new TxSelectOkBodyImpl(in);
+ }
+ };
+
+ public static AMQMethodBodyInstanceFactory getFactory()
+ {
+ return FACTORY_INSTANCE;
+ }
+
+ public static final int CLASS_ID = 90;
+ public static final int METHOD_ID = 11;
+
+ // Fields declared in specification
+
+ // Constructor
+ public TxSelectOkBodyImpl(MarkableDataInput buffer) throws AMQFrameDecodingException, IOException
+ {
+ }
+
+ public TxSelectOkBodyImpl(
+ )
+ {
+ }
+
+ public int getClazz()
+ {
+ return CLASS_ID;
+ }
+
+ public int getMethod()
+ {
+ return METHOD_ID;
+ }
+
+
+ protected int getBodySize()
+ {
+ int size = 0;
+ return size;
+ }
+
+ public void writeMethodPayload(DataOutput buffer) throws IOException
+ {
+ }
+
+ public boolean execute(MethodDispatcher dispatcher, int channelId) throws AMQException
+ {
+ return ((MethodDispatcher_8_0)dispatcher).dispatchTxSelectOk(this, channelId);
+ }
+
+ public String toString()
+ {
+ StringBuilder buf = new StringBuilder("[TxSelectOkBodyImpl: ");
+ buf.append("]");
+ return buf.toString();
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Acquired.java b/java/common/src/main/java/org/apache/qpid/transport/Acquired.java
new file mode 100644
index 0000000000..28e6e4c4e6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Acquired.java
@@ -0,0 +1,141 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class Acquired extends Struct {
+
+ public static final int TYPE = 1028;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet transfers;
+
+
+ public Acquired() {}
+
+
+ public Acquired(RangeSet transfers) {
+ if(transfers != null) {
+ setTransfers(transfers);
+ }
+
+ }
+
+
+
+
+ public final boolean hasTransfers() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final Acquired clearTransfers() {
+ packing_flags &= ~256;
+ this.transfers = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getTransfers() {
+ return transfers;
+ }
+
+ public final Acquired setTransfers(RangeSet value) {
+ this.transfers = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final Acquired transfers(RangeSet value) {
+ return setTransfers(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.transfers);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.transfers = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("transfers", getTransfers());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionClose.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionClose.java
new file mode 100644
index 0000000000..8888f354d8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionClose.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionClose extends Method {
+
+ public static final int TYPE = 267;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private ConnectionCloseCode replyCode;
+ private String replyText;
+
+
+ public ConnectionClose() {}
+
+
+ public ConnectionClose(ConnectionCloseCode replyCode, String replyText, Option ... _options) {
+ if(replyCode != null) {
+ setReplyCode(replyCode);
+ }
+ if(replyText != null) {
+ setReplyText(replyText);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionClose(context, this);
+ }
+
+
+ public final boolean hasReplyCode() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionClose clearReplyCode() {
+ packing_flags &= ~256;
+ this.replyCode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionCloseCode getReplyCode() {
+ return replyCode;
+ }
+
+ public final ConnectionClose setReplyCode(ConnectionCloseCode value) {
+ this.replyCode = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionClose replyCode(ConnectionCloseCode value) {
+ return setReplyCode(value);
+ }
+
+ public final boolean hasReplyText() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionClose clearReplyText() {
+ packing_flags &= ~512;
+ this.replyText = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getReplyText() {
+ return replyText;
+ }
+
+ public final ConnectionClose setReplyText(String value) {
+ this.replyText = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionClose replyText(String value) {
+ return setReplyText(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint16(this.replyCode.getValue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.replyText);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.replyCode = ConnectionCloseCode.get(dec.readUint16());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.replyText = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("replyCode", getReplyCode());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("replyText", getReplyText());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseCode.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseCode.java
new file mode 100644
index 0000000000..18c5b257d2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseCode.java
@@ -0,0 +1,54 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum ConnectionCloseCode {
+
+ NORMAL((int) 200),
+ CONNECTION_FORCED((int) 320),
+ INVALID_PATH((int) 402),
+ FRAMING_ERROR((int) 501);
+
+ private final int value;
+
+ ConnectionCloseCode(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static ConnectionCloseCode get(int value)
+ {
+ switch (value)
+ {
+ case (int) 200: return NORMAL;
+ case (int) 320: return CONNECTION_FORCED;
+ case (int) 402: return INVALID_PATH;
+ case (int) 501: return FRAMING_ERROR;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseOk.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseOk.java
new file mode 100644
index 0000000000..b954ac2162
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionCloseOk.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionCloseOk extends Method {
+
+ public static final int TYPE = 268;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public ConnectionCloseOk(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionCloseOk(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionHeartbeat.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionHeartbeat.java
new file mode 100644
index 0000000000..190bca0eaa
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionHeartbeat.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionHeartbeat extends Method {
+
+ public static final int TYPE = 266;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public ConnectionHeartbeat(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionHeartbeat(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionInvoker.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionInvoker.java
new file mode 100644
index 0000000000..29045e17de
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionInvoker.java
@@ -0,0 +1,78 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.Map;
+
+public abstract class ConnectionInvoker {
+
+ final void connectionStart(Map<String,Object> serverProperties, java.util.List<Object> mechanisms, java.util.List<Object> locales, Option ... _options) {
+ invoke(new ConnectionStart(serverProperties, mechanisms, locales, _options));
+ }
+
+ final void connectionStartOk(Map<String,Object> clientProperties, String mechanism, byte[] response, String locale, Option ... _options) {
+ invoke(new ConnectionStartOk(clientProperties, mechanism, response, locale, _options));
+ }
+
+ final void connectionSecure(byte[] challenge, Option ... _options) {
+ invoke(new ConnectionSecure(challenge, _options));
+ }
+
+ final void connectionSecureOk(byte[] response, Option ... _options) {
+ invoke(new ConnectionSecureOk(response, _options));
+ }
+
+ final void connectionTune(int channelMax, int maxFrameSize, int heartbeatMin, int heartbeatMax, Option ... _options) {
+ invoke(new ConnectionTune(channelMax, maxFrameSize, heartbeatMin, heartbeatMax, _options));
+ }
+
+ final void connectionTuneOk(int channelMax, int maxFrameSize, int heartbeat, Option ... _options) {
+ invoke(new ConnectionTuneOk(channelMax, maxFrameSize, heartbeat, _options));
+ }
+
+ final void connectionOpen(String virtualHost, java.util.List<Object> capabilities, Option ... _options) {
+ invoke(new ConnectionOpen(virtualHost, capabilities, _options));
+ }
+
+ final void connectionOpenOk(java.util.List<Object> knownHosts, Option ... _options) {
+ invoke(new ConnectionOpenOk(knownHosts, _options));
+ }
+
+ final void connectionRedirect(String host, java.util.List<Object> knownHosts, Option ... _options) {
+ invoke(new ConnectionRedirect(host, knownHosts, _options));
+ }
+
+ final void connectionHeartbeat(Option ... _options) {
+ invoke(new ConnectionHeartbeat(_options));
+ }
+
+ final void connectionClose(ConnectionCloseCode replyCode, String replyText, Option ... _options) {
+ invoke(new ConnectionClose(replyCode, replyText, _options));
+ }
+
+ final void connectionCloseOk(Option ... _options) {
+ invoke(new ConnectionCloseOk(_options));
+ }
+
+ protected abstract void invoke(Method method);
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpen.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpen.java
new file mode 100644
index 0000000000..b17a3810f2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpen.java
@@ -0,0 +1,235 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionOpen extends Method {
+
+ public static final int TYPE = 263;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private String virtualHost;
+ private java.util.List<Object> capabilities;
+
+
+ public ConnectionOpen() {}
+
+
+ public ConnectionOpen(String virtualHost, java.util.List<Object> capabilities, Option ... _options) {
+ if(virtualHost != null) {
+ setVirtualHost(virtualHost);
+ }
+ if(capabilities != null) {
+ setCapabilities(capabilities);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case INSIST: packing_flags |= 1024; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionOpen(context, this);
+ }
+
+
+ public final boolean hasVirtualHost() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionOpen clearVirtualHost() {
+ packing_flags &= ~256;
+ this.virtualHost = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getVirtualHost() {
+ return virtualHost;
+ }
+
+ public final ConnectionOpen setVirtualHost(String value) {
+ this.virtualHost = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionOpen virtualHost(String value) {
+ return setVirtualHost(value);
+ }
+
+ public final boolean hasCapabilities() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionOpen clearCapabilities() {
+ packing_flags &= ~512;
+ this.capabilities = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getCapabilities() {
+ return capabilities;
+ }
+
+ public final ConnectionOpen setCapabilities(java.util.List<Object> value) {
+ this.capabilities = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionOpen capabilities(java.util.List<Object> value) {
+ return setCapabilities(value);
+ }
+
+ public final boolean hasInsist() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ConnectionOpen clearInsist() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getInsist() {
+ return hasInsist();
+ }
+
+ public final ConnectionOpen setInsist(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionOpen insist(boolean value) {
+ return setInsist(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.virtualHost);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeArray(this.capabilities);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.virtualHost = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.capabilities = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("virtualHost", getVirtualHost());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("capabilities", getCapabilities());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("insist", getInsist());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpenOk.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpenOk.java
new file mode 100644
index 0000000000..0cbbba51bb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionOpenOk.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionOpenOk extends Method {
+
+ public static final int TYPE = 264;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private java.util.List<Object> knownHosts;
+
+
+ public ConnectionOpenOk() {}
+
+
+ public ConnectionOpenOk(java.util.List<Object> knownHosts, Option ... _options) {
+ if(knownHosts != null) {
+ setKnownHosts(knownHosts);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionOpenOk(context, this);
+ }
+
+
+ public final boolean hasKnownHosts() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionOpenOk clearKnownHosts() {
+ packing_flags &= ~256;
+ this.knownHosts = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getKnownHosts() {
+ return knownHosts;
+ }
+
+ public final ConnectionOpenOk setKnownHosts(java.util.List<Object> value) {
+ this.knownHosts = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionOpenOk knownHosts(java.util.List<Object> value) {
+ return setKnownHosts(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeArray(this.knownHosts);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.knownHosts = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("knownHosts", getKnownHosts());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionRedirect.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionRedirect.java
new file mode 100644
index 0000000000..c84758c54c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionRedirect.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionRedirect extends Method {
+
+ public static final int TYPE = 265;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private String host;
+ private java.util.List<Object> knownHosts;
+
+
+ public ConnectionRedirect() {}
+
+
+ public ConnectionRedirect(String host, java.util.List<Object> knownHosts, Option ... _options) {
+ if(host != null) {
+ setHost(host);
+ }
+ if(knownHosts != null) {
+ setKnownHosts(knownHosts);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionRedirect(context, this);
+ }
+
+
+ public final boolean hasHost() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionRedirect clearHost() {
+ packing_flags &= ~256;
+ this.host = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getHost() {
+ return host;
+ }
+
+ public final ConnectionRedirect setHost(String value) {
+ this.host = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionRedirect host(String value) {
+ return setHost(value);
+ }
+
+ public final boolean hasKnownHosts() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionRedirect clearKnownHosts() {
+ packing_flags &= ~512;
+ this.knownHosts = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getKnownHosts() {
+ return knownHosts;
+ }
+
+ public final ConnectionRedirect setKnownHosts(java.util.List<Object> value) {
+ this.knownHosts = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionRedirect knownHosts(java.util.List<Object> value) {
+ return setKnownHosts(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr16(this.host);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeArray(this.knownHosts);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.host = dec.readStr16();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.knownHosts = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("host", getHost());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("knownHosts", getKnownHosts());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecure.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecure.java
new file mode 100644
index 0000000000..44fbac2b19
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecure.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionSecure extends Method {
+
+ public static final int TYPE = 259;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private byte[] challenge;
+
+
+ public ConnectionSecure() {}
+
+
+ public ConnectionSecure(byte[] challenge, Option ... _options) {
+ if(challenge != null) {
+ setChallenge(challenge);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionSecure(context, this);
+ }
+
+
+ public final boolean hasChallenge() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionSecure clearChallenge() {
+ packing_flags &= ~256;
+ this.challenge = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getChallenge() {
+ return challenge;
+ }
+
+ public final ConnectionSecure setChallenge(byte[] value) {
+ this.challenge = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionSecure challenge(byte[] value) {
+ return setChallenge(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin32(this.challenge);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.challenge = dec.readVbin32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("challenge", getChallenge());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecureOk.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecureOk.java
new file mode 100644
index 0000000000..2a2b7df83a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionSecureOk.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionSecureOk extends Method {
+
+ public static final int TYPE = 260;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private byte[] response;
+
+
+ public ConnectionSecureOk() {}
+
+
+ public ConnectionSecureOk(byte[] response, Option ... _options) {
+ if(response != null) {
+ setResponse(response);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionSecureOk(context, this);
+ }
+
+
+ public final boolean hasResponse() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionSecureOk clearResponse() {
+ packing_flags &= ~256;
+ this.response = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getResponse() {
+ return response;
+ }
+
+ public final ConnectionSecureOk setResponse(byte[] value) {
+ this.response = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionSecureOk response(byte[] value) {
+ return setResponse(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin32(this.response);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.response = dec.readVbin32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("response", getResponse());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionStart.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionStart.java
new file mode 100644
index 0000000000..6193122c56
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionStart.java
@@ -0,0 +1,238 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionStart extends Method {
+
+ public static final int TYPE = 257;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private Map<String,Object> serverProperties;
+ private java.util.List<Object> mechanisms;
+ private java.util.List<Object> locales;
+
+
+ public ConnectionStart() {}
+
+
+ public ConnectionStart(Map<String,Object> serverProperties, java.util.List<Object> mechanisms, java.util.List<Object> locales, Option ... _options) {
+ if(serverProperties != null) {
+ setServerProperties(serverProperties);
+ }
+ if(mechanisms != null) {
+ setMechanisms(mechanisms);
+ }
+ if(locales != null) {
+ setLocales(locales);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionStart(context, this);
+ }
+
+
+ public final boolean hasServerProperties() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionStart clearServerProperties() {
+ packing_flags &= ~256;
+ this.serverProperties = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getServerProperties() {
+ return serverProperties;
+ }
+
+ public final ConnectionStart setServerProperties(Map<String,Object> value) {
+ this.serverProperties = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStart serverProperties(Map<String,Object> value) {
+ return setServerProperties(value);
+ }
+
+ public final boolean hasMechanisms() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionStart clearMechanisms() {
+ packing_flags &= ~512;
+ this.mechanisms = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getMechanisms() {
+ return mechanisms;
+ }
+
+ public final ConnectionStart setMechanisms(java.util.List<Object> value) {
+ this.mechanisms = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStart mechanisms(java.util.List<Object> value) {
+ return setMechanisms(value);
+ }
+
+ public final boolean hasLocales() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ConnectionStart clearLocales() {
+ packing_flags &= ~1024;
+ this.locales = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getLocales() {
+ return locales;
+ }
+
+ public final ConnectionStart setLocales(java.util.List<Object> value) {
+ this.locales = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStart locales(java.util.List<Object> value) {
+ return setLocales(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeMap(this.serverProperties);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeArray(this.mechanisms);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeArray(this.locales);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.serverProperties = dec.readMap();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.mechanisms = dec.readArray();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.locales = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("serverProperties", getServerProperties());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("mechanisms", getMechanisms());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("locales", getLocales());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionStartOk.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionStartOk.java
new file mode 100644
index 0000000000..13fe27de34
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionStartOk.java
@@ -0,0 +1,280 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionStartOk extends Method {
+
+ public static final int TYPE = 258;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private Map<String,Object> clientProperties;
+ private String mechanism;
+ private byte[] response;
+ private String locale;
+
+
+ public ConnectionStartOk() {}
+
+
+ public ConnectionStartOk(Map<String,Object> clientProperties, String mechanism, byte[] response, String locale, Option ... _options) {
+ if(clientProperties != null) {
+ setClientProperties(clientProperties);
+ }
+ if(mechanism != null) {
+ setMechanism(mechanism);
+ }
+ if(response != null) {
+ setResponse(response);
+ }
+ if(locale != null) {
+ setLocale(locale);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionStartOk(context, this);
+ }
+
+
+ public final boolean hasClientProperties() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionStartOk clearClientProperties() {
+ packing_flags &= ~256;
+ this.clientProperties = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getClientProperties() {
+ return clientProperties;
+ }
+
+ public final ConnectionStartOk setClientProperties(Map<String,Object> value) {
+ this.clientProperties = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStartOk clientProperties(Map<String,Object> value) {
+ return setClientProperties(value);
+ }
+
+ public final boolean hasMechanism() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionStartOk clearMechanism() {
+ packing_flags &= ~512;
+ this.mechanism = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getMechanism() {
+ return mechanism;
+ }
+
+ public final ConnectionStartOk setMechanism(String value) {
+ this.mechanism = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStartOk mechanism(String value) {
+ return setMechanism(value);
+ }
+
+ public final boolean hasResponse() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ConnectionStartOk clearResponse() {
+ packing_flags &= ~1024;
+ this.response = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getResponse() {
+ return response;
+ }
+
+ public final ConnectionStartOk setResponse(byte[] value) {
+ this.response = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStartOk response(byte[] value) {
+ return setResponse(value);
+ }
+
+ public final boolean hasLocale() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ConnectionStartOk clearLocale() {
+ packing_flags &= ~2048;
+ this.locale = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getLocale() {
+ return locale;
+ }
+
+ public final ConnectionStartOk setLocale(String value) {
+ this.locale = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionStartOk locale(String value) {
+ return setLocale(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeMap(this.clientProperties);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.mechanism);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeVbin32(this.response);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeStr8(this.locale);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.clientProperties = dec.readMap();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.mechanism = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.response = dec.readVbin32();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.locale = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("clientProperties", getClientProperties());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("mechanism", getMechanism());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("response", getResponse());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("locale", getLocale());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionTune.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionTune.java
new file mode 100644
index 0000000000..b838532878
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionTune.java
@@ -0,0 +1,272 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionTune extends Method {
+
+ public static final int TYPE = 261;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private int channelMax;
+ private int maxFrameSize;
+ private int heartbeatMin;
+ private int heartbeatMax;
+
+
+ public ConnectionTune() {}
+
+
+ public ConnectionTune(int channelMax, int maxFrameSize, int heartbeatMin, int heartbeatMax, Option ... _options) {
+ setChannelMax(channelMax);
+ setMaxFrameSize(maxFrameSize);
+ setHeartbeatMin(heartbeatMin);
+ setHeartbeatMax(heartbeatMax);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionTune(context, this);
+ }
+
+
+ public final boolean hasChannelMax() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionTune clearChannelMax() {
+ packing_flags &= ~256;
+ this.channelMax = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getChannelMax() {
+ return channelMax;
+ }
+
+ public final ConnectionTune setChannelMax(int value) {
+ this.channelMax = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTune channelMax(int value) {
+ return setChannelMax(value);
+ }
+
+ public final boolean hasMaxFrameSize() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionTune clearMaxFrameSize() {
+ packing_flags &= ~512;
+ this.maxFrameSize = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getMaxFrameSize() {
+ return maxFrameSize;
+ }
+
+ public final ConnectionTune setMaxFrameSize(int value) {
+ this.maxFrameSize = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTune maxFrameSize(int value) {
+ return setMaxFrameSize(value);
+ }
+
+ public final boolean hasHeartbeatMin() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ConnectionTune clearHeartbeatMin() {
+ packing_flags &= ~1024;
+ this.heartbeatMin = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getHeartbeatMin() {
+ return heartbeatMin;
+ }
+
+ public final ConnectionTune setHeartbeatMin(int value) {
+ this.heartbeatMin = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTune heartbeatMin(int value) {
+ return setHeartbeatMin(value);
+ }
+
+ public final boolean hasHeartbeatMax() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ConnectionTune clearHeartbeatMax() {
+ packing_flags &= ~2048;
+ this.heartbeatMax = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getHeartbeatMax() {
+ return heartbeatMax;
+ }
+
+ public final ConnectionTune setHeartbeatMax(int value) {
+ this.heartbeatMax = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTune heartbeatMax(int value) {
+ return setHeartbeatMax(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint16(this.channelMax);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint16(this.maxFrameSize);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint16(this.heartbeatMin);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeUint16(this.heartbeatMax);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.channelMax = dec.readUint16();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.maxFrameSize = dec.readUint16();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.heartbeatMin = dec.readUint16();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.heartbeatMax = dec.readUint16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("channelMax", getChannelMax());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("maxFrameSize", getMaxFrameSize());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("heartbeatMin", getHeartbeatMin());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("heartbeatMax", getHeartbeatMax());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ConnectionTuneOk.java b/java/common/src/main/java/org/apache/qpid/transport/ConnectionTuneOk.java
new file mode 100644
index 0000000000..17b5d34752
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ConnectionTuneOk.java
@@ -0,0 +1,232 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ConnectionTuneOk extends Method {
+
+ public static final int TYPE = 262;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return true;
+ }
+
+ private short packing_flags = 0;
+ private int channelMax;
+ private int maxFrameSize;
+ private int heartbeat;
+
+
+ public ConnectionTuneOk() {}
+
+
+ public ConnectionTuneOk(int channelMax, int maxFrameSize, int heartbeat, Option ... _options) {
+ setChannelMax(channelMax);
+ setMaxFrameSize(maxFrameSize);
+ setHeartbeat(heartbeat);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.connectionTuneOk(context, this);
+ }
+
+
+ public final boolean hasChannelMax() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ConnectionTuneOk clearChannelMax() {
+ packing_flags &= ~256;
+ this.channelMax = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getChannelMax() {
+ return channelMax;
+ }
+
+ public final ConnectionTuneOk setChannelMax(int value) {
+ this.channelMax = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTuneOk channelMax(int value) {
+ return setChannelMax(value);
+ }
+
+ public final boolean hasMaxFrameSize() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ConnectionTuneOk clearMaxFrameSize() {
+ packing_flags &= ~512;
+ this.maxFrameSize = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getMaxFrameSize() {
+ return maxFrameSize;
+ }
+
+ public final ConnectionTuneOk setMaxFrameSize(int value) {
+ this.maxFrameSize = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTuneOk maxFrameSize(int value) {
+ return setMaxFrameSize(value);
+ }
+
+ public final boolean hasHeartbeat() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ConnectionTuneOk clearHeartbeat() {
+ packing_flags &= ~1024;
+ this.heartbeat = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getHeartbeat() {
+ return heartbeat;
+ }
+
+ public final ConnectionTuneOk setHeartbeat(int value) {
+ this.heartbeat = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ConnectionTuneOk heartbeat(int value) {
+ return setHeartbeat(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint16(this.channelMax);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint16(this.maxFrameSize);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint16(this.heartbeat);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.channelMax = dec.readUint16();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.maxFrameSize = dec.readUint16();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.heartbeat = dec.readUint16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("channelMax", getChannelMax());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("maxFrameSize", getMaxFrameSize());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("heartbeat", getHeartbeat());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Constant.java b/java/common/src/main/java/org/apache/qpid/transport/Constant.java
new file mode 100644
index 0000000000..17355d3465
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Constant.java
@@ -0,0 +1,29 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+
+
+public interface Constant
+{
+ public static final int MIN_MAX_FRAME_SIZE = 4096;
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DeliveryProperties.java b/java/common/src/main/java/org/apache/qpid/transport/DeliveryProperties.java
new file mode 100644
index 0000000000..ded5a42247
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DeliveryProperties.java
@@ -0,0 +1,593 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class DeliveryProperties extends Struct {
+
+ public static final int TYPE = 1025;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private MessageDeliveryPriority priority;
+ private MessageDeliveryMode deliveryMode;
+ private long ttl;
+ private long timestamp;
+ private long expiration;
+ private String exchange;
+ private String routingKey;
+ private String resumeId;
+ private long resumeTtl;
+
+
+ public DeliveryProperties() {}
+
+
+ public DeliveryProperties(MessageDeliveryPriority priority, MessageDeliveryMode deliveryMode, long ttl, long timestamp, long expiration, String exchange, String routingKey, String resumeId, long resumeTtl, Option ... _options) {
+ if(priority != null) {
+ setPriority(priority);
+ }
+ if(deliveryMode != null) {
+ setDeliveryMode(deliveryMode);
+ }
+ setTtl(ttl);
+ setTimestamp(timestamp);
+ setExpiration(expiration);
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(routingKey != null) {
+ setRoutingKey(routingKey);
+ }
+ if(resumeId != null) {
+ setResumeId(resumeId);
+ }
+ setResumeTtl(resumeTtl);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case DISCARD_UNROUTABLE: packing_flags |= 256; break;
+ case IMMEDIATE: packing_flags |= 512; break;
+ case REDELIVERED: packing_flags |= 1024; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasDiscardUnroutable() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DeliveryProperties clearDiscardUnroutable() {
+ packing_flags &= ~256;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getDiscardUnroutable() {
+ return hasDiscardUnroutable();
+ }
+
+ public final DeliveryProperties setDiscardUnroutable(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 256;
+ }
+ else
+ {
+ packing_flags &= ~256;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties discardUnroutable(boolean value) {
+ return setDiscardUnroutable(value);
+ }
+
+ public final boolean hasImmediate() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final DeliveryProperties clearImmediate() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getImmediate() {
+ return hasImmediate();
+ }
+
+ public final DeliveryProperties setImmediate(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties immediate(boolean value) {
+ return setImmediate(value);
+ }
+
+ public final boolean hasRedelivered() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final DeliveryProperties clearRedelivered() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getRedelivered() {
+ return hasRedelivered();
+ }
+
+ public final DeliveryProperties setRedelivered(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties redelivered(boolean value) {
+ return setRedelivered(value);
+ }
+
+ public final boolean hasPriority() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final DeliveryProperties clearPriority() {
+ packing_flags &= ~2048;
+ this.priority = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageDeliveryPriority getPriority() {
+ return priority;
+ }
+
+ public final DeliveryProperties setPriority(MessageDeliveryPriority value) {
+ this.priority = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties priority(MessageDeliveryPriority value) {
+ return setPriority(value);
+ }
+
+ public final boolean hasDeliveryMode() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final DeliveryProperties clearDeliveryMode() {
+ packing_flags &= ~4096;
+ this.deliveryMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageDeliveryMode getDeliveryMode() {
+ return deliveryMode;
+ }
+
+ public final DeliveryProperties setDeliveryMode(MessageDeliveryMode value) {
+ this.deliveryMode = value;
+ packing_flags |= 4096;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties deliveryMode(MessageDeliveryMode value) {
+ return setDeliveryMode(value);
+ }
+
+ public final boolean hasTtl() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final DeliveryProperties clearTtl() {
+ packing_flags &= ~8192;
+ this.ttl = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTtl() {
+ return ttl;
+ }
+
+ public final DeliveryProperties setTtl(long value) {
+ this.ttl = value;
+ packing_flags |= 8192;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties ttl(long value) {
+ return setTtl(value);
+ }
+
+ public final boolean hasTimestamp() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final DeliveryProperties clearTimestamp() {
+ packing_flags &= ~16384;
+ this.timestamp = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTimestamp() {
+ return timestamp;
+ }
+
+ public final DeliveryProperties setTimestamp(long value) {
+ this.timestamp = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties timestamp(long value) {
+ return setTimestamp(value);
+ }
+
+ public final boolean hasExpiration() {
+ return (packing_flags & 32768) != 0;
+ }
+
+ public final DeliveryProperties clearExpiration() {
+ packing_flags &= ~32768;
+ this.expiration = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getExpiration() {
+ return expiration;
+ }
+
+ public final DeliveryProperties setExpiration(long value) {
+ this.expiration = value;
+ packing_flags |= 32768;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties expiration(long value) {
+ return setExpiration(value);
+ }
+
+ public final boolean hasExchange() {
+ return (packing_flags & 1) != 0;
+ }
+
+ public final DeliveryProperties clearExchange() {
+ packing_flags &= ~1;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final DeliveryProperties setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 1;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasRoutingKey() {
+ return (packing_flags & 2) != 0;
+ }
+
+ public final DeliveryProperties clearRoutingKey() {
+ packing_flags &= ~2;
+ this.routingKey = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getRoutingKey() {
+ return routingKey;
+ }
+
+ public final DeliveryProperties setRoutingKey(String value) {
+ this.routingKey = value;
+ packing_flags |= 2;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties routingKey(String value) {
+ return setRoutingKey(value);
+ }
+
+ public final boolean hasResumeId() {
+ return (packing_flags & 4) != 0;
+ }
+
+ public final DeliveryProperties clearResumeId() {
+ packing_flags &= ~4;
+ this.resumeId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getResumeId() {
+ return resumeId;
+ }
+
+ public final DeliveryProperties setResumeId(String value) {
+ this.resumeId = value;
+ packing_flags |= 4;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties resumeId(String value) {
+ return setResumeId(value);
+ }
+
+ public final boolean hasResumeTtl() {
+ return (packing_flags & 8) != 0;
+ }
+
+ public final DeliveryProperties clearResumeTtl() {
+ packing_flags &= ~8;
+ this.resumeTtl = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getResumeTtl() {
+ return resumeTtl;
+ }
+
+ public final DeliveryProperties setResumeTtl(long value) {
+ this.resumeTtl = value;
+ packing_flags |= 8;
+ setDirty(true);
+ return this;
+ }
+
+ public final DeliveryProperties resumeTtl(long value) {
+ return setResumeTtl(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeUint8(this.priority.getValue());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ enc.writeUint8(this.deliveryMode.getValue());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ enc.writeUint64(this.ttl);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeDatetime(this.timestamp);
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ enc.writeDatetime(this.expiration);
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 2) != 0)
+ {
+ enc.writeStr8(this.routingKey);
+ }
+ if ((packing_flags & 4) != 0)
+ {
+ enc.writeStr16(this.resumeId);
+ }
+ if ((packing_flags & 8) != 0)
+ {
+ enc.writeUint64(this.resumeTtl);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 2048) != 0)
+ {
+ this.priority = MessageDeliveryPriority.get(dec.readUint8());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ this.deliveryMode = MessageDeliveryMode.get(dec.readUint8());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ this.ttl = dec.readUint64();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.timestamp = dec.readDatetime();
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ this.expiration = dec.readDatetime();
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 2) != 0)
+ {
+ this.routingKey = dec.readStr8();
+ }
+ if ((packing_flags & 4) != 0)
+ {
+ this.resumeId = dec.readStr16();
+ }
+ if ((packing_flags & 8) != 0)
+ {
+ this.resumeTtl = dec.readUint64();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("discardUnroutable", getDiscardUnroutable());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("immediate", getImmediate());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("redelivered", getRedelivered());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("priority", getPriority());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("deliveryMode", getDeliveryMode());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("ttl", getTtl());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("timestamp", getTimestamp());
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ result.put("expiration", getExpiration());
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 2) != 0)
+ {
+ result.put("routingKey", getRoutingKey());
+ }
+ if ((packing_flags & 4) != 0)
+ {
+ result.put("resumeId", getResumeId());
+ }
+ if ((packing_flags & 8) != 0)
+ {
+ result.put("resumeTtl", getResumeTtl());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxCommit.java b/java/common/src/main/java/org/apache/qpid/transport/DtxCommit.java
new file mode 100644
index 0000000000..315b37025d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxCommit.java
@@ -0,0 +1,193 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxCommit extends Method {
+
+ public static final int TYPE = 1540;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxCommit() {}
+
+
+ public DtxCommit(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case ONE_PHASE: packing_flags |= 512; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxCommit(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxCommit clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxCommit setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxCommit xid(Xid value) {
+ return setXid(value);
+ }
+
+ public final boolean hasOnePhase() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final DtxCommit clearOnePhase() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getOnePhase() {
+ return hasOnePhase();
+ }
+
+ public final DtxCommit setOnePhase(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxCommit onePhase(boolean value) {
+ return setOnePhase(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("onePhase", getOnePhase());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxEnd.java b/java/common/src/main/java/org/apache/qpid/transport/DtxEnd.java
new file mode 100644
index 0000000000..70cac46379
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxEnd.java
@@ -0,0 +1,232 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxEnd extends Method {
+
+ public static final int TYPE = 1539;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxEnd() {}
+
+
+ public DtxEnd(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case FAIL: packing_flags |= 512; break;
+ case SUSPEND: packing_flags |= 1024; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxEnd(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxEnd clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxEnd setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxEnd xid(Xid value) {
+ return setXid(value);
+ }
+
+ public final boolean hasFail() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final DtxEnd clearFail() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getFail() {
+ return hasFail();
+ }
+
+ public final DtxEnd setFail(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxEnd fail(boolean value) {
+ return setFail(value);
+ }
+
+ public final boolean hasSuspend() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final DtxEnd clearSuspend() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getSuspend() {
+ return hasSuspend();
+ }
+
+ public final DtxEnd setSuspend(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxEnd suspend(boolean value) {
+ return setSuspend(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("fail", getFail());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("suspend", getSuspend());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxForget.java b/java/common/src/main/java/org/apache/qpid/transport/DtxForget.java
new file mode 100644
index 0000000000..0d57488e78
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxForget.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxForget extends Method {
+
+ public static final int TYPE = 1541;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxForget() {}
+
+
+ public DtxForget(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxForget(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxForget clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxForget setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxForget xid(Xid value) {
+ return setXid(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxGetTimeout.java b/java/common/src/main/java/org/apache/qpid/transport/DtxGetTimeout.java
new file mode 100644
index 0000000000..42293a865f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxGetTimeout.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxGetTimeout extends Method {
+
+ public static final int TYPE = 1542;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxGetTimeout() {}
+
+
+ public DtxGetTimeout(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxGetTimeout(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxGetTimeout clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxGetTimeout setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxGetTimeout xid(Xid value) {
+ return setXid(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxPrepare.java b/java/common/src/main/java/org/apache/qpid/transport/DtxPrepare.java
new file mode 100644
index 0000000000..8a771e638f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxPrepare.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxPrepare extends Method {
+
+ public static final int TYPE = 1543;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxPrepare() {}
+
+
+ public DtxPrepare(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxPrepare(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxPrepare clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxPrepare setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxPrepare xid(Xid value) {
+ return setXid(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxRecover.java b/java/common/src/main/java/org/apache/qpid/transport/DtxRecover.java
new file mode 100644
index 0000000000..bbda4a0a60
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxRecover.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxRecover extends Method {
+
+ public static final int TYPE = 1544;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public DtxRecover(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxRecover(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxRollback.java b/java/common/src/main/java/org/apache/qpid/transport/DtxRollback.java
new file mode 100644
index 0000000000..d3cb28638c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxRollback.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxRollback extends Method {
+
+ public static final int TYPE = 1545;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxRollback() {}
+
+
+ public DtxRollback(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxRollback(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxRollback clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxRollback setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxRollback xid(Xid value) {
+ return setXid(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxSelect.java b/java/common/src/main/java/org/apache/qpid/transport/DtxSelect.java
new file mode 100644
index 0000000000..b70a4884ff
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxSelect.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxSelect extends Method {
+
+ public static final int TYPE = 1537;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public DtxSelect(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxSelect(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxSetTimeout.java b/java/common/src/main/java/org/apache/qpid/transport/DtxSetTimeout.java
new file mode 100644
index 0000000000..0c8b78e12c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxSetTimeout.java
@@ -0,0 +1,194 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxSetTimeout extends Method {
+
+ public static final int TYPE = 1546;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+ private long timeout;
+
+
+ public DtxSetTimeout() {}
+
+
+ public DtxSetTimeout(Xid xid, long timeout, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+ setTimeout(timeout);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxSetTimeout(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxSetTimeout clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxSetTimeout setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxSetTimeout xid(Xid value) {
+ return setXid(value);
+ }
+
+ public final boolean hasTimeout() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final DtxSetTimeout clearTimeout() {
+ packing_flags &= ~512;
+ this.timeout = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTimeout() {
+ return timeout;
+ }
+
+ public final DtxSetTimeout setTimeout(long value) {
+ this.timeout = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxSetTimeout timeout(long value) {
+ return setTimeout(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint32(this.timeout);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.timeout = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("timeout", getTimeout());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxStart.java b/java/common/src/main/java/org/apache/qpid/transport/DtxStart.java
new file mode 100644
index 0000000000..7e60f1fbf1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxStart.java
@@ -0,0 +1,232 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class DtxStart extends Method {
+
+ public static final int TYPE = 1538;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private Xid xid;
+
+
+ public DtxStart() {}
+
+
+ public DtxStart(Xid xid, Option ... _options) {
+ if(xid != null) {
+ setXid(xid);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case JOIN: packing_flags |= 512; break;
+ case RESUME: packing_flags |= 1024; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.dtxStart(context, this);
+ }
+
+
+ public final boolean hasXid() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final DtxStart clearXid() {
+ packing_flags &= ~256;
+ this.xid = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid getXid() {
+ return xid;
+ }
+
+ public final DtxStart setXid(Xid value) {
+ this.xid = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxStart xid(Xid value) {
+ return setXid(value);
+ }
+
+ public final boolean hasJoin() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final DtxStart clearJoin() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getJoin() {
+ return hasJoin();
+ }
+
+ public final DtxStart setJoin(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxStart join(boolean value) {
+ return setJoin(value);
+ }
+
+ public final boolean hasResume() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final DtxStart clearResume() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getResume() {
+ return hasResume();
+ }
+
+ public final DtxStart setResume(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxStart resume(boolean value) {
+ return setResume(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStruct(Xid.TYPE, this.xid);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.xid = (Xid)dec.readStruct(Xid.TYPE);
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("xid", getXid());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("join", getJoin());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("resume", getResume());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/DtxXaStatus.java b/java/common/src/main/java/org/apache/qpid/transport/DtxXaStatus.java
new file mode 100644
index 0000000000..9300354ad4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/DtxXaStatus.java
@@ -0,0 +1,62 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum DtxXaStatus {
+
+ XA_OK((int) 0),
+ XA_RBROLLBACK((int) 1),
+ XA_RBTIMEOUT((int) 2),
+ XA_HEURHAZ((int) 3),
+ XA_HEURCOM((int) 4),
+ XA_HEURRB((int) 5),
+ XA_HEURMIX((int) 6),
+ XA_RDONLY((int) 7);
+
+ private final int value;
+
+ DtxXaStatus(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static DtxXaStatus get(int value)
+ {
+ switch (value)
+ {
+ case (int) 0: return XA_OK;
+ case (int) 1: return XA_RBROLLBACK;
+ case (int) 2: return XA_RBTIMEOUT;
+ case (int) 3: return XA_HEURHAZ;
+ case (int) 4: return XA_HEURCOM;
+ case (int) 5: return XA_HEURRB;
+ case (int) 6: return XA_HEURMIX;
+ case (int) 7: return XA_RDONLY;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeBind.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBind.java
new file mode 100644
index 0000000000..6ef3b0b460
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBind.java
@@ -0,0 +1,280 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeBind extends Method {
+
+ public static final int TYPE = 1796;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+ private String exchange;
+ private String bindingKey;
+ private Map<String,Object> arguments;
+
+
+ public ExchangeBind() {}
+
+
+ public ExchangeBind(String queue, String exchange, String bindingKey, Map<String,Object> arguments, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(bindingKey != null) {
+ setBindingKey(bindingKey);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeBind(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeBind clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final ExchangeBind setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBind queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasExchange() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeBind clearExchange() {
+ packing_flags &= ~512;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ExchangeBind setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBind exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasBindingKey() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeBind clearBindingKey() {
+ packing_flags &= ~1024;
+ this.bindingKey = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getBindingKey() {
+ return bindingKey;
+ }
+
+ public final ExchangeBind setBindingKey(String value) {
+ this.bindingKey = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBind bindingKey(String value) {
+ return setBindingKey(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExchangeBind clearArguments() {
+ packing_flags &= ~2048;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final ExchangeBind setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBind arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeStr8(this.bindingKey);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.bindingKey = dec.readStr8();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("bindingKey", getBindingKey());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeBound.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBound.java
new file mode 100644
index 0000000000..5847feed9b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBound.java
@@ -0,0 +1,280 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeBound extends Method {
+
+ public static final int TYPE = 1798;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String exchange;
+ private String queue;
+ private String bindingKey;
+ private Map<String,Object> arguments;
+
+
+ public ExchangeBound() {}
+
+
+ public ExchangeBound(String exchange, String queue, String bindingKey, Map<String,Object> arguments, Option ... _options) {
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(bindingKey != null) {
+ setBindingKey(bindingKey);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeBound(context, this);
+ }
+
+
+ public final boolean hasExchange() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeBound clearExchange() {
+ packing_flags &= ~256;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ExchangeBound setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBound exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasQueue() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeBound clearQueue() {
+ packing_flags &= ~512;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final ExchangeBound setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBound queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasBindingKey() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeBound clearBindingKey() {
+ packing_flags &= ~1024;
+ this.bindingKey = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getBindingKey() {
+ return bindingKey;
+ }
+
+ public final ExchangeBound setBindingKey(String value) {
+ this.bindingKey = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBound bindingKey(String value) {
+ return setBindingKey(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExchangeBound clearArguments() {
+ packing_flags &= ~2048;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final ExchangeBound setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBound arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeStr8(this.bindingKey);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.bindingKey = dec.readStr8();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("bindingKey", getBindingKey());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeBoundResult.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBoundResult.java
new file mode 100644
index 0000000000..04d944ea33
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeBoundResult.java
@@ -0,0 +1,301 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class ExchangeBoundResult extends Struct {
+
+ public static final int TYPE = 1794;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+ public ExchangeBoundResult() {}
+
+
+ public ExchangeBoundResult(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case EXCHANGE_NOT_FOUND: packing_flags |= 256; break;
+ case QUEUE_NOT_FOUND: packing_flags |= 512; break;
+ case QUEUE_NOT_MATCHED: packing_flags |= 1024; break;
+ case KEY_NOT_MATCHED: packing_flags |= 2048; break;
+ case ARGS_NOT_MATCHED: packing_flags |= 4096; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasExchangeNotFound() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeBoundResult clearExchangeNotFound() {
+ packing_flags &= ~256;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getExchangeNotFound() {
+ return hasExchangeNotFound();
+ }
+
+ public final ExchangeBoundResult setExchangeNotFound(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 256;
+ }
+ else
+ {
+ packing_flags &= ~256;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBoundResult exchangeNotFound(boolean value) {
+ return setExchangeNotFound(value);
+ }
+
+ public final boolean hasQueueNotFound() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeBoundResult clearQueueNotFound() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getQueueNotFound() {
+ return hasQueueNotFound();
+ }
+
+ public final ExchangeBoundResult setQueueNotFound(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBoundResult queueNotFound(boolean value) {
+ return setQueueNotFound(value);
+ }
+
+ public final boolean hasQueueNotMatched() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeBoundResult clearQueueNotMatched() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getQueueNotMatched() {
+ return hasQueueNotMatched();
+ }
+
+ public final ExchangeBoundResult setQueueNotMatched(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBoundResult queueNotMatched(boolean value) {
+ return setQueueNotMatched(value);
+ }
+
+ public final boolean hasKeyNotMatched() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExchangeBoundResult clearKeyNotMatched() {
+ packing_flags &= ~2048;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getKeyNotMatched() {
+ return hasKeyNotMatched();
+ }
+
+ public final ExchangeBoundResult setKeyNotMatched(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 2048;
+ }
+ else
+ {
+ packing_flags &= ~2048;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBoundResult keyNotMatched(boolean value) {
+ return setKeyNotMatched(value);
+ }
+
+ public final boolean hasArgsNotMatched() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final ExchangeBoundResult clearArgsNotMatched() {
+ packing_flags &= ~4096;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getArgsNotMatched() {
+ return hasArgsNotMatched();
+ }
+
+ public final ExchangeBoundResult setArgsNotMatched(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 4096;
+ }
+ else
+ {
+ packing_flags &= ~4096;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeBoundResult argsNotMatched(boolean value) {
+ return setArgsNotMatched(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("exchangeNotFound", getExchangeNotFound());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("queueNotFound", getQueueNotFound());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("queueNotMatched", getQueueNotMatched());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("keyNotMatched", getKeyNotMatched());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("argsNotMatched", getArgsNotMatched());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeDeclare.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeDeclare.java
new file mode 100644
index 0000000000..e339801f44
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeDeclare.java
@@ -0,0 +1,397 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeDeclare extends Method {
+
+ public static final int TYPE = 1793;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String exchange;
+ private String type;
+ private String alternateExchange;
+ private Map<String,Object> arguments;
+
+
+ public ExchangeDeclare() {}
+
+
+ public ExchangeDeclare(String exchange, String type, String alternateExchange, Map<String,Object> arguments, Option ... _options) {
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(type != null) {
+ setType(type);
+ }
+ if(alternateExchange != null) {
+ setAlternateExchange(alternateExchange);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case PASSIVE: packing_flags |= 2048; break;
+ case DURABLE: packing_flags |= 4096; break;
+ case AUTO_DELETE: packing_flags |= 8192; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeDeclare(context, this);
+ }
+
+
+ public final boolean hasExchange() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeDeclare clearExchange() {
+ packing_flags &= ~256;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ExchangeDeclare setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasType() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeDeclare clearType() {
+ packing_flags &= ~512;
+ this.type = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getType() {
+ return type;
+ }
+
+ public final ExchangeDeclare setType(String value) {
+ this.type = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare type(String value) {
+ return setType(value);
+ }
+
+ public final boolean hasAlternateExchange() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeDeclare clearAlternateExchange() {
+ packing_flags &= ~1024;
+ this.alternateExchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getAlternateExchange() {
+ return alternateExchange;
+ }
+
+ public final ExchangeDeclare setAlternateExchange(String value) {
+ this.alternateExchange = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare alternateExchange(String value) {
+ return setAlternateExchange(value);
+ }
+
+ public final boolean hasPassive() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExchangeDeclare clearPassive() {
+ packing_flags &= ~2048;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getPassive() {
+ return hasPassive();
+ }
+
+ public final ExchangeDeclare setPassive(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 2048;
+ }
+ else
+ {
+ packing_flags &= ~2048;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare passive(boolean value) {
+ return setPassive(value);
+ }
+
+ public final boolean hasDurable() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final ExchangeDeclare clearDurable() {
+ packing_flags &= ~4096;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getDurable() {
+ return hasDurable();
+ }
+
+ public final ExchangeDeclare setDurable(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 4096;
+ }
+ else
+ {
+ packing_flags &= ~4096;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare durable(boolean value) {
+ return setDurable(value);
+ }
+
+ public final boolean hasAutoDelete() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final ExchangeDeclare clearAutoDelete() {
+ packing_flags &= ~8192;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getAutoDelete() {
+ return hasAutoDelete();
+ }
+
+ public final ExchangeDeclare setAutoDelete(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 8192;
+ }
+ else
+ {
+ packing_flags &= ~8192;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare autoDelete(boolean value) {
+ return setAutoDelete(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final ExchangeDeclare clearArguments() {
+ packing_flags &= ~16384;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final ExchangeDeclare setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDeclare arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.type);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeStr8(this.alternateExchange);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.type = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.alternateExchange = dec.readStr8();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("type", getType());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("alternateExchange", getAlternateExchange());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("passive", getPassive());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("durable", getDurable());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("autoDelete", getAutoDelete());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeDelete.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeDelete.java
new file mode 100644
index 0000000000..a7dcd0cf2c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeDelete.java
@@ -0,0 +1,193 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeDelete extends Method {
+
+ public static final int TYPE = 1794;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String exchange;
+
+
+ public ExchangeDelete() {}
+
+
+ public ExchangeDelete(String exchange, Option ... _options) {
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case IF_UNUSED: packing_flags |= 512; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeDelete(context, this);
+ }
+
+
+ public final boolean hasExchange() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeDelete clearExchange() {
+ packing_flags &= ~256;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ExchangeDelete setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDelete exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasIfUnused() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeDelete clearIfUnused() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getIfUnused() {
+ return hasIfUnused();
+ }
+
+ public final ExchangeDelete setIfUnused(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeDelete ifUnused(boolean value) {
+ return setIfUnused(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("ifUnused", getIfUnused());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeQuery.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeQuery.java
new file mode 100644
index 0000000000..d5f46e7bbf
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeQuery.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeQuery extends Method {
+
+ public static final int TYPE = 1795;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String name;
+
+
+ public ExchangeQuery() {}
+
+
+ public ExchangeQuery(String name, Option ... _options) {
+ if(name != null) {
+ setName(name);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeQuery(context, this);
+ }
+
+
+ public final boolean hasName() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeQuery clearName() {
+ packing_flags &= ~256;
+ this.name = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getName() {
+ return name;
+ }
+
+ public final ExchangeQuery setName(String value) {
+ this.name = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeQuery name(String value) {
+ return setName(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.name);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.name = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("name", getName());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeQueryResult.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeQueryResult.java
new file mode 100644
index 0000000000..9f83a4aaa7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeQueryResult.java
@@ -0,0 +1,268 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class ExchangeQueryResult extends Struct {
+
+ public static final int TYPE = 1793;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String type;
+ private Map<String,Object> arguments;
+
+
+ public ExchangeQueryResult() {}
+
+
+ public ExchangeQueryResult(String type, Map<String,Object> arguments, Option ... _options) {
+ if(type != null) {
+ setType(type);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case DURABLE: packing_flags |= 512; break;
+ case NOT_FOUND: packing_flags |= 1024; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasType() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeQueryResult clearType() {
+ packing_flags &= ~256;
+ this.type = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getType() {
+ return type;
+ }
+
+ public final ExchangeQueryResult setType(String value) {
+ this.type = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeQueryResult type(String value) {
+ return setType(value);
+ }
+
+ public final boolean hasDurable() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeQueryResult clearDurable() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getDurable() {
+ return hasDurable();
+ }
+
+ public final ExchangeQueryResult setDurable(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeQueryResult durable(boolean value) {
+ return setDurable(value);
+ }
+
+ public final boolean hasNotFound() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeQueryResult clearNotFound() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getNotFound() {
+ return hasNotFound();
+ }
+
+ public final ExchangeQueryResult setNotFound(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeQueryResult notFound(boolean value) {
+ return setNotFound(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExchangeQueryResult clearArguments() {
+ packing_flags &= ~2048;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final ExchangeQueryResult setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeQueryResult arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.type);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.type = dec.readStr8();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("type", getType());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("durable", getDurable());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("notFound", getNotFound());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExchangeUnbind.java b/java/common/src/main/java/org/apache/qpid/transport/ExchangeUnbind.java
new file mode 100644
index 0000000000..ba3fe95952
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExchangeUnbind.java
@@ -0,0 +1,238 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExchangeUnbind extends Method {
+
+ public static final int TYPE = 1797;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+ private String exchange;
+ private String bindingKey;
+
+
+ public ExchangeUnbind() {}
+
+
+ public ExchangeUnbind(String queue, String exchange, String bindingKey, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(bindingKey != null) {
+ setBindingKey(bindingKey);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.exchangeUnbind(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExchangeUnbind clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final ExchangeUnbind setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeUnbind queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasExchange() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExchangeUnbind clearExchange() {
+ packing_flags &= ~512;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ExchangeUnbind setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeUnbind exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasBindingKey() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExchangeUnbind clearBindingKey() {
+ packing_flags &= ~1024;
+ this.bindingKey = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getBindingKey() {
+ return bindingKey;
+ }
+
+ public final ExchangeUnbind setBindingKey(String value) {
+ this.bindingKey = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExchangeUnbind bindingKey(String value) {
+ return setBindingKey(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeStr8(this.bindingKey);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.bindingKey = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("bindingKey", getBindingKey());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExecutionErrorCode.java b/java/common/src/main/java/org/apache/qpid/transport/ExecutionErrorCode.java
new file mode 100644
index 0000000000..0ba83296e7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExecutionErrorCode.java
@@ -0,0 +1,72 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum ExecutionErrorCode {
+
+ UNAUTHORIZED_ACCESS((int) 403),
+ NOT_FOUND((int) 404),
+ RESOURCE_LOCKED((int) 405),
+ PRECONDITION_FAILED((int) 406),
+ RESOURCE_DELETED((int) 408),
+ ILLEGAL_STATE((int) 409),
+ COMMAND_INVALID((int) 503),
+ RESOURCE_LIMIT_EXCEEDED((int) 506),
+ NOT_ALLOWED((int) 530),
+ ILLEGAL_ARGUMENT((int) 531),
+ NOT_IMPLEMENTED((int) 540),
+ INTERNAL_ERROR((int) 541),
+ INVALID_ARGUMENT((int) 542);
+
+ private final int value;
+
+ ExecutionErrorCode(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static ExecutionErrorCode get(int value)
+ {
+ switch (value)
+ {
+ case (int) 403: return UNAUTHORIZED_ACCESS;
+ case (int) 404: return NOT_FOUND;
+ case (int) 405: return RESOURCE_LOCKED;
+ case (int) 406: return PRECONDITION_FAILED;
+ case (int) 408: return RESOURCE_DELETED;
+ case (int) 409: return ILLEGAL_STATE;
+ case (int) 503: return COMMAND_INVALID;
+ case (int) 506: return RESOURCE_LIMIT_EXCEEDED;
+ case (int) 530: return NOT_ALLOWED;
+ case (int) 531: return ILLEGAL_ARGUMENT;
+ case (int) 540: return NOT_IMPLEMENTED;
+ case (int) 541: return INTERNAL_ERROR;
+ case (int) 542: return INVALID_ARGUMENT;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExecutionException.java b/java/common/src/main/java/org/apache/qpid/transport/ExecutionException.java
new file mode 100644
index 0000000000..0f61272476
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExecutionException.java
@@ -0,0 +1,398 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExecutionException extends Method {
+
+ public static final int TYPE = 771;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private ExecutionErrorCode errorCode;
+ private int commandId;
+ private short classCode;
+ private short commandCode;
+ private short fieldIndex;
+ private String description;
+ private Map<String,Object> errorInfo;
+
+
+ public ExecutionException() {}
+
+
+ public ExecutionException(ExecutionErrorCode errorCode, int commandId, short classCode, short commandCode, short fieldIndex, String description, Map<String,Object> errorInfo, Option ... _options) {
+ if(errorCode != null) {
+ setErrorCode(errorCode);
+ }
+ setCommandId(commandId);
+ setClassCode(classCode);
+ setCommandCode(commandCode);
+ setFieldIndex(fieldIndex);
+ if(description != null) {
+ setDescription(description);
+ }
+ if(errorInfo != null) {
+ setErrorInfo(errorInfo);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.executionException(context, this);
+ }
+
+
+ public final boolean hasErrorCode() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExecutionException clearErrorCode() {
+ packing_flags &= ~256;
+ this.errorCode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionErrorCode getErrorCode() {
+ return errorCode;
+ }
+
+ public final ExecutionException setErrorCode(ExecutionErrorCode value) {
+ this.errorCode = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException errorCode(ExecutionErrorCode value) {
+ return setErrorCode(value);
+ }
+
+ public final boolean hasCommandId() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExecutionException clearCommandId() {
+ packing_flags &= ~512;
+ this.commandId = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getCommandId() {
+ return commandId;
+ }
+
+ public final ExecutionException setCommandId(int value) {
+ this.commandId = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException commandId(int value) {
+ return setCommandId(value);
+ }
+
+ public final boolean hasClassCode() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final ExecutionException clearClassCode() {
+ packing_flags &= ~1024;
+ this.classCode = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final short getClassCode() {
+ return classCode;
+ }
+
+ public final ExecutionException setClassCode(short value) {
+ this.classCode = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException classCode(short value) {
+ return setClassCode(value);
+ }
+
+ public final boolean hasCommandCode() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final ExecutionException clearCommandCode() {
+ packing_flags &= ~2048;
+ this.commandCode = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final short getCommandCode() {
+ return commandCode;
+ }
+
+ public final ExecutionException setCommandCode(short value) {
+ this.commandCode = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException commandCode(short value) {
+ return setCommandCode(value);
+ }
+
+ public final boolean hasFieldIndex() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final ExecutionException clearFieldIndex() {
+ packing_flags &= ~4096;
+ this.fieldIndex = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final short getFieldIndex() {
+ return fieldIndex;
+ }
+
+ public final ExecutionException setFieldIndex(short value) {
+ this.fieldIndex = value;
+ packing_flags |= 4096;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException fieldIndex(short value) {
+ return setFieldIndex(value);
+ }
+
+ public final boolean hasDescription() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final ExecutionException clearDescription() {
+ packing_flags &= ~8192;
+ this.description = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDescription() {
+ return description;
+ }
+
+ public final ExecutionException setDescription(String value) {
+ this.description = value;
+ packing_flags |= 8192;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException description(String value) {
+ return setDescription(value);
+ }
+
+ public final boolean hasErrorInfo() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final ExecutionException clearErrorInfo() {
+ packing_flags &= ~16384;
+ this.errorInfo = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getErrorInfo() {
+ return errorInfo;
+ }
+
+ public final ExecutionException setErrorInfo(Map<String,Object> value) {
+ this.errorInfo = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionException errorInfo(Map<String,Object> value) {
+ return setErrorInfo(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint16(this.errorCode.getValue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeSequenceNo(this.commandId);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint8(this.classCode);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeUint8(this.commandCode);
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ enc.writeUint8(this.fieldIndex);
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ enc.writeStr16(this.description);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeMap(this.errorInfo);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.errorCode = ExecutionErrorCode.get(dec.readUint16());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.commandId = dec.readSequenceNo();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.classCode = dec.readUint8();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.commandCode = dec.readUint8();
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ this.fieldIndex = dec.readUint8();
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ this.description = dec.readStr16();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.errorInfo = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("errorCode", getErrorCode());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("commandId", getCommandId());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("classCode", getClassCode());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("commandCode", getCommandCode());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("fieldIndex", getFieldIndex());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("description", getDescription());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("errorInfo", getErrorInfo());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExecutionResult.java b/java/common/src/main/java/org/apache/qpid/transport/ExecutionResult.java
new file mode 100644
index 0000000000..123848b7eb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExecutionResult.java
@@ -0,0 +1,194 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExecutionResult extends Method {
+
+ public static final int TYPE = 770;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private int commandId;
+ private Struct value;
+
+
+ public ExecutionResult() {}
+
+
+ public ExecutionResult(int commandId, Struct value, Option ... _options) {
+ setCommandId(commandId);
+ if(value != null) {
+ setValue(value);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.executionResult(context, this);
+ }
+
+
+ public final boolean hasCommandId() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ExecutionResult clearCommandId() {
+ packing_flags &= ~256;
+ this.commandId = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getCommandId() {
+ return commandId;
+ }
+
+ public final ExecutionResult setCommandId(int value) {
+ this.commandId = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionResult commandId(int value) {
+ return setCommandId(value);
+ }
+
+ public final boolean hasValue() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ExecutionResult clearValue() {
+ packing_flags &= ~512;
+ this.value = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Struct getValue() {
+ return value;
+ }
+
+ public final ExecutionResult setValue(Struct value) {
+ this.value = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ExecutionResult value(Struct value) {
+ return setValue(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceNo(this.commandId);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStruct32(this.value);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commandId = dec.readSequenceNo();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.value = dec.readStruct32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commandId", getCommandId());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("value", getValue());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ExecutionSync.java b/java/common/src/main/java/org/apache/qpid/transport/ExecutionSync.java
new file mode 100644
index 0000000000..db35beb161
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ExecutionSync.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class ExecutionSync extends Method {
+
+ public static final int TYPE = 769;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public ExecutionSync(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.executionSync(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/FileReturnCode.java b/java/common/src/main/java/org/apache/qpid/transport/FileReturnCode.java
new file mode 100644
index 0000000000..2c0b4d510b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/FileReturnCode.java
@@ -0,0 +1,52 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum FileReturnCode {
+
+ CONTENT_TOO_LARGE((int) 311),
+ NO_ROUTE((int) 312),
+ NO_CONSUMERS((int) 313);
+
+ private final int value;
+
+ FileReturnCode(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static FileReturnCode get(int value)
+ {
+ switch (value)
+ {
+ case (int) 311: return CONTENT_TOO_LARGE;
+ case (int) 312: return NO_ROUTE;
+ case (int) 313: return NO_CONSUMERS;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/FragmentProperties.java b/java/common/src/main/java/org/apache/qpid/transport/FragmentProperties.java
new file mode 100644
index 0000000000..0b9774355e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/FragmentProperties.java
@@ -0,0 +1,224 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class FragmentProperties extends Struct {
+
+ public static final int TYPE = 1026;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long fragmentSize;
+
+
+ public FragmentProperties() {}
+
+
+ public FragmentProperties(long fragmentSize, Option ... _options) {
+ setFragmentSize(fragmentSize);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case FIRST: packing_flags |= 256; break;
+ case LAST: packing_flags |= 512; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasFirst() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final FragmentProperties clearFirst() {
+ packing_flags &= ~256;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getFirst() {
+ return hasFirst();
+ }
+
+ public final FragmentProperties setFirst(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 256;
+ }
+ else
+ {
+ packing_flags &= ~256;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final FragmentProperties first(boolean value) {
+ return setFirst(value);
+ }
+
+ public final boolean hasLast() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final FragmentProperties clearLast() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getLast() {
+ return hasLast();
+ }
+
+ public final FragmentProperties setLast(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final FragmentProperties last(boolean value) {
+ return setLast(value);
+ }
+
+ public final boolean hasFragmentSize() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final FragmentProperties clearFragmentSize() {
+ packing_flags &= ~1024;
+ this.fragmentSize = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getFragmentSize() {
+ return fragmentSize;
+ }
+
+ public final FragmentProperties setFragmentSize(long value) {
+ this.fragmentSize = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final FragmentProperties fragmentSize(long value) {
+ return setFragmentSize(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint64(this.fragmentSize);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 1024) != 0)
+ {
+ this.fragmentSize = dec.readUint64();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("first", getFirst());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("last", getLast());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("fragmentSize", getFragmentSize());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/GetTimeoutResult.java b/java/common/src/main/java/org/apache/qpid/transport/GetTimeoutResult.java
new file mode 100644
index 0000000000..ebff105464
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/GetTimeoutResult.java
@@ -0,0 +1,139 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class GetTimeoutResult extends Struct {
+
+ public static final int TYPE = 1538;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long timeout;
+
+
+ public GetTimeoutResult() {}
+
+
+ public GetTimeoutResult(long timeout) {
+ setTimeout(timeout);
+
+ }
+
+
+
+
+ public final boolean hasTimeout() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final GetTimeoutResult clearTimeout() {
+ packing_flags &= ~256;
+ this.timeout = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTimeout() {
+ return timeout;
+ }
+
+ public final GetTimeoutResult setTimeout(long value) {
+ this.timeout = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final GetTimeoutResult timeout(long value) {
+ return setTimeout(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint32(this.timeout);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.timeout = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("timeout", getTimeout());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageAccept.java b/java/common/src/main/java/org/apache/qpid/transport/MessageAccept.java
new file mode 100644
index 0000000000..e30a4e4f66
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageAccept.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageAccept extends Method {
+
+ public static final int TYPE = 1026;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet transfers;
+
+
+ public MessageAccept() {}
+
+
+ public MessageAccept(RangeSet transfers, Option ... _options) {
+ if(transfers != null) {
+ setTransfers(transfers);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageAccept(context, this);
+ }
+
+
+ public final boolean hasTransfers() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageAccept clearTransfers() {
+ packing_flags &= ~256;
+ this.transfers = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getTransfers() {
+ return transfers;
+ }
+
+ public final MessageAccept setTransfers(RangeSet value) {
+ this.transfers = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAccept transfers(RangeSet value) {
+ return setTransfers(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.transfers);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.transfers = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("transfers", getTransfers());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageAcceptMode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageAcceptMode.java
new file mode 100644
index 0000000000..0f11560c66
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageAcceptMode.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageAcceptMode {
+
+ EXPLICIT((short) 0),
+ NONE((short) 1);
+
+ private final short value;
+
+ MessageAcceptMode(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageAcceptMode get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return EXPLICIT;
+ case (short) 1: return NONE;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageAcquire.java b/java/common/src/main/java/org/apache/qpid/transport/MessageAcquire.java
new file mode 100644
index 0000000000..6ef5283163
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageAcquire.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageAcquire extends Method {
+
+ public static final int TYPE = 1029;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet transfers;
+
+
+ public MessageAcquire() {}
+
+
+ public MessageAcquire(RangeSet transfers, Option ... _options) {
+ if(transfers != null) {
+ setTransfers(transfers);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageAcquire(context, this);
+ }
+
+
+ public final boolean hasTransfers() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageAcquire clearTransfers() {
+ packing_flags &= ~256;
+ this.transfers = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getTransfers() {
+ return transfers;
+ }
+
+ public final MessageAcquire setTransfers(RangeSet value) {
+ this.transfers = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAcquire transfers(RangeSet value) {
+ return setTransfers(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.transfers);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.transfers = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("transfers", getTransfers());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageAcquireMode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageAcquireMode.java
new file mode 100644
index 0000000000..3d46baf1af
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageAcquireMode.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageAcquireMode {
+
+ PRE_ACQUIRED((short) 0),
+ NOT_ACQUIRED((short) 1);
+
+ private final short value;
+
+ MessageAcquireMode(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageAcquireMode get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return PRE_ACQUIRED;
+ case (short) 1: return NOT_ACQUIRED;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageCancel.java b/java/common/src/main/java/org/apache/qpid/transport/MessageCancel.java
new file mode 100644
index 0000000000..1ab510150d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageCancel.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageCancel extends Method {
+
+ public static final int TYPE = 1032;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+
+
+ public MessageCancel() {}
+
+
+ public MessageCancel(String destination, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageCancel(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageCancel clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageCancel setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageCancel destination(String value) {
+ return setDestination(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageCreditUnit.java b/java/common/src/main/java/org/apache/qpid/transport/MessageCreditUnit.java
new file mode 100644
index 0000000000..f3ade93c69
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageCreditUnit.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageCreditUnit {
+
+ MESSAGE((short) 0),
+ BYTE((short) 1);
+
+ private final short value;
+
+ MessageCreditUnit(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageCreditUnit get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return MESSAGE;
+ case (short) 1: return BYTE;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryMode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryMode.java
new file mode 100644
index 0000000000..eb21465c10
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryMode.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageDeliveryMode {
+
+ NON_PERSISTENT((short) 1),
+ PERSISTENT((short) 2);
+
+ private final short value;
+
+ MessageDeliveryMode(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageDeliveryMode get(short value)
+ {
+ switch (value)
+ {
+ case (short) 1: return NON_PERSISTENT;
+ case (short) 2: return PERSISTENT;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryPriority.java b/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryPriority.java
new file mode 100644
index 0000000000..d5d1b861e8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageDeliveryPriority.java
@@ -0,0 +1,66 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageDeliveryPriority {
+
+ LOWEST((short) 0),
+ LOWER((short) 1),
+ LOW((short) 2),
+ BELOW_AVERAGE((short) 3),
+ MEDIUM((short) 4),
+ ABOVE_AVERAGE((short) 5),
+ HIGH((short) 6),
+ HIGHER((short) 7),
+ VERY_HIGH((short) 8),
+ HIGHEST((short) 9);
+
+ private final short value;
+
+ MessageDeliveryPriority(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageDeliveryPriority get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return LOWEST;
+ case (short) 1: return LOWER;
+ case (short) 2: return LOW;
+ case (short) 3: return BELOW_AVERAGE;
+ case (short) 4: return MEDIUM;
+ case (short) 5: return ABOVE_AVERAGE;
+ case (short) 6: return HIGH;
+ case (short) 7: return HIGHER;
+ case (short) 8: return VERY_HIGH;
+ case (short) 9: return HIGHEST;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageFlow.java b/java/common/src/main/java/org/apache/qpid/transport/MessageFlow.java
new file mode 100644
index 0000000000..0ece4245b3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageFlow.java
@@ -0,0 +1,236 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageFlow extends Method {
+
+ public static final int TYPE = 1034;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+ private MessageCreditUnit unit;
+ private long value;
+
+
+ public MessageFlow() {}
+
+
+ public MessageFlow(String destination, MessageCreditUnit unit, long value, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+ if(unit != null) {
+ setUnit(unit);
+ }
+ setValue(value);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageFlow(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageFlow clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageFlow setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageFlow destination(String value) {
+ return setDestination(value);
+ }
+
+ public final boolean hasUnit() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageFlow clearUnit() {
+ packing_flags &= ~512;
+ this.unit = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageCreditUnit getUnit() {
+ return unit;
+ }
+
+ public final MessageFlow setUnit(MessageCreditUnit value) {
+ this.unit = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageFlow unit(MessageCreditUnit value) {
+ return setUnit(value);
+ }
+
+ public final boolean hasValue() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final MessageFlow clearValue() {
+ packing_flags &= ~1024;
+ this.value = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getValue() {
+ return value;
+ }
+
+ public final MessageFlow setValue(long value) {
+ this.value = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageFlow value(long value) {
+ return setValue(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint8(this.unit.getValue());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint32(this.value);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.unit = MessageCreditUnit.get(dec.readUint8());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.value = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("unit", getUnit());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("value", getValue());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageFlowMode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageFlowMode.java
new file mode 100644
index 0000000000..60670260fb
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageFlowMode.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageFlowMode {
+
+ CREDIT((short) 0),
+ WINDOW((short) 1);
+
+ private final short value;
+
+ MessageFlowMode(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static MessageFlowMode get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return CREDIT;
+ case (short) 1: return WINDOW;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageFlush.java b/java/common/src/main/java/org/apache/qpid/transport/MessageFlush.java
new file mode 100644
index 0000000000..8e093dd003
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageFlush.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageFlush extends Method {
+
+ public static final int TYPE = 1035;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+
+
+ public MessageFlush() {}
+
+
+ public MessageFlush(String destination, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageFlush(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageFlush clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageFlush setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageFlush destination(String value) {
+ return setDestination(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageProperties.java b/java/common/src/main/java/org/apache/qpid/transport/MessageProperties.java
new file mode 100644
index 0000000000..37b5e7a052
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageProperties.java
@@ -0,0 +1,475 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class MessageProperties extends Struct {
+
+ public static final int TYPE = 1027;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long contentLength;
+ private java.util.UUID messageId;
+ private byte[] correlationId;
+ private ReplyTo replyTo;
+ private String contentType;
+ private String contentEncoding;
+ private byte[] userId;
+ private byte[] appId;
+ private Map<String,Object> applicationHeaders;
+
+
+ public MessageProperties() {}
+
+
+ public MessageProperties(long contentLength, java.util.UUID messageId, byte[] correlationId, ReplyTo replyTo, String contentType, String contentEncoding, byte[] userId, byte[] appId, Map<String,Object> applicationHeaders) {
+ setContentLength(contentLength);
+ if(messageId != null) {
+ setMessageId(messageId);
+ }
+ if(correlationId != null) {
+ setCorrelationId(correlationId);
+ }
+ if(replyTo != null) {
+ setReplyTo(replyTo);
+ }
+ if(contentType != null) {
+ setContentType(contentType);
+ }
+ if(contentEncoding != null) {
+ setContentEncoding(contentEncoding);
+ }
+ if(userId != null) {
+ setUserId(userId);
+ }
+ if(appId != null) {
+ setAppId(appId);
+ }
+ if(applicationHeaders != null) {
+ setApplicationHeaders(applicationHeaders);
+ }
+
+ }
+
+
+
+
+ public final boolean hasContentLength() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageProperties clearContentLength() {
+ packing_flags &= ~256;
+ this.contentLength = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getContentLength() {
+ return contentLength;
+ }
+
+ public final MessageProperties setContentLength(long value) {
+ this.contentLength = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties contentLength(long value) {
+ return setContentLength(value);
+ }
+
+ public final boolean hasMessageId() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageProperties clearMessageId() {
+ packing_flags &= ~512;
+ this.messageId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.UUID getMessageId() {
+ return messageId;
+ }
+
+ public final MessageProperties setMessageId(java.util.UUID value) {
+ this.messageId = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties messageId(java.util.UUID value) {
+ return setMessageId(value);
+ }
+
+ public final boolean hasCorrelationId() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final MessageProperties clearCorrelationId() {
+ packing_flags &= ~1024;
+ this.correlationId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getCorrelationId() {
+ return correlationId;
+ }
+
+ public final MessageProperties setCorrelationId(byte[] value) {
+ this.correlationId = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties correlationId(byte[] value) {
+ return setCorrelationId(value);
+ }
+
+ public final boolean hasReplyTo() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final MessageProperties clearReplyTo() {
+ packing_flags &= ~2048;
+ this.replyTo = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final ReplyTo getReplyTo() {
+ return replyTo;
+ }
+
+ public final MessageProperties setReplyTo(ReplyTo value) {
+ this.replyTo = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties replyTo(ReplyTo value) {
+ return setReplyTo(value);
+ }
+
+ public final boolean hasContentType() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final MessageProperties clearContentType() {
+ packing_flags &= ~4096;
+ this.contentType = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getContentType() {
+ return contentType;
+ }
+
+ public final MessageProperties setContentType(String value) {
+ this.contentType = value;
+ packing_flags |= 4096;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties contentType(String value) {
+ return setContentType(value);
+ }
+
+ public final boolean hasContentEncoding() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final MessageProperties clearContentEncoding() {
+ packing_flags &= ~8192;
+ this.contentEncoding = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getContentEncoding() {
+ return contentEncoding;
+ }
+
+ public final MessageProperties setContentEncoding(String value) {
+ this.contentEncoding = value;
+ packing_flags |= 8192;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties contentEncoding(String value) {
+ return setContentEncoding(value);
+ }
+
+ public final boolean hasUserId() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final MessageProperties clearUserId() {
+ packing_flags &= ~16384;
+ this.userId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getUserId() {
+ return userId;
+ }
+
+ public final MessageProperties setUserId(byte[] value) {
+ this.userId = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties userId(byte[] value) {
+ return setUserId(value);
+ }
+
+ public final boolean hasAppId() {
+ return (packing_flags & 32768) != 0;
+ }
+
+ public final MessageProperties clearAppId() {
+ packing_flags &= ~32768;
+ this.appId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getAppId() {
+ return appId;
+ }
+
+ public final MessageProperties setAppId(byte[] value) {
+ this.appId = value;
+ packing_flags |= 32768;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties appId(byte[] value) {
+ return setAppId(value);
+ }
+
+ public final boolean hasApplicationHeaders() {
+ return (packing_flags & 1) != 0;
+ }
+
+ public final MessageProperties clearApplicationHeaders() {
+ packing_flags &= ~1;
+ this.applicationHeaders = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getApplicationHeaders() {
+ return applicationHeaders;
+ }
+
+ public final MessageProperties setApplicationHeaders(Map<String,Object> value) {
+ this.applicationHeaders = value;
+ packing_flags |= 1;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageProperties applicationHeaders(Map<String,Object> value) {
+ return setApplicationHeaders(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint64(this.contentLength);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUuid(this.messageId);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeVbin16(this.correlationId);
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeStruct(ReplyTo.TYPE, this.replyTo);
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ enc.writeStr8(this.contentType);
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ enc.writeStr8(this.contentEncoding);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeVbin16(this.userId);
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ enc.writeVbin16(this.appId);
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ enc.writeMap(this.applicationHeaders);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.contentLength = dec.readUint64();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.messageId = dec.readUuid();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.correlationId = dec.readVbin16();
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.replyTo = (ReplyTo)dec.readStruct(ReplyTo.TYPE);
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ this.contentType = dec.readStr8();
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ this.contentEncoding = dec.readStr8();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.userId = dec.readVbin16();
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ this.appId = dec.readVbin16();
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ this.applicationHeaders = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("contentLength", getContentLength());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("messageId", getMessageId());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("correlationId", getCorrelationId());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("replyTo", getReplyTo());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("contentType", getContentType());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("contentEncoding", getContentEncoding());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("userId", getUserId());
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ result.put("appId", getAppId());
+ }
+ if ((packing_flags & 1) != 0)
+ {
+ result.put("applicationHeaders", getApplicationHeaders());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageReject.java b/java/common/src/main/java/org/apache/qpid/transport/MessageReject.java
new file mode 100644
index 0000000000..60cb37d55c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageReject.java
@@ -0,0 +1,238 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageReject extends Method {
+
+ public static final int TYPE = 1027;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet transfers;
+ private MessageRejectCode code;
+ private String text;
+
+
+ public MessageReject() {}
+
+
+ public MessageReject(RangeSet transfers, MessageRejectCode code, String text, Option ... _options) {
+ if(transfers != null) {
+ setTransfers(transfers);
+ }
+ if(code != null) {
+ setCode(code);
+ }
+ if(text != null) {
+ setText(text);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageReject(context, this);
+ }
+
+
+ public final boolean hasTransfers() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageReject clearTransfers() {
+ packing_flags &= ~256;
+ this.transfers = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getTransfers() {
+ return transfers;
+ }
+
+ public final MessageReject setTransfers(RangeSet value) {
+ this.transfers = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageReject transfers(RangeSet value) {
+ return setTransfers(value);
+ }
+
+ public final boolean hasCode() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageReject clearCode() {
+ packing_flags &= ~512;
+ this.code = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageRejectCode getCode() {
+ return code;
+ }
+
+ public final MessageReject setCode(MessageRejectCode value) {
+ this.code = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageReject code(MessageRejectCode value) {
+ return setCode(value);
+ }
+
+ public final boolean hasText() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final MessageReject clearText() {
+ packing_flags &= ~1024;
+ this.text = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getText() {
+ return text;
+ }
+
+ public final MessageReject setText(String value) {
+ this.text = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageReject text(String value) {
+ return setText(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.transfers);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint16(this.code.getValue());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeStr8(this.text);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.transfers = dec.readSequenceSet();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.code = MessageRejectCode.get(dec.readUint16());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.text = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("transfers", getTransfers());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("code", getCode());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("text", getText());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageRejectCode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageRejectCode.java
new file mode 100644
index 0000000000..dc41de100b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageRejectCode.java
@@ -0,0 +1,52 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum MessageRejectCode {
+
+ UNSPECIFIED((int) 0),
+ UNROUTABLE((int) 1),
+ IMMEDIATE((int) 2);
+
+ private final int value;
+
+ MessageRejectCode(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static MessageRejectCode get(int value)
+ {
+ switch (value)
+ {
+ case (int) 0: return UNSPECIFIED;
+ case (int) 1: return UNROUTABLE;
+ case (int) 2: return IMMEDIATE;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageRelease.java b/java/common/src/main/java/org/apache/qpid/transport/MessageRelease.java
new file mode 100644
index 0000000000..557139dd01
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageRelease.java
@@ -0,0 +1,193 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageRelease extends Method {
+
+ public static final int TYPE = 1028;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet transfers;
+
+
+ public MessageRelease() {}
+
+
+ public MessageRelease(RangeSet transfers, Option ... _options) {
+ if(transfers != null) {
+ setTransfers(transfers);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SET_REDELIVERED: packing_flags |= 512; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageRelease(context, this);
+ }
+
+
+ public final boolean hasTransfers() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageRelease clearTransfers() {
+ packing_flags &= ~256;
+ this.transfers = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getTransfers() {
+ return transfers;
+ }
+
+ public final MessageRelease setTransfers(RangeSet value) {
+ this.transfers = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageRelease transfers(RangeSet value) {
+ return setTransfers(value);
+ }
+
+ public final boolean hasSetRedelivered() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageRelease clearSetRedelivered() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getSetRedelivered() {
+ return hasSetRedelivered();
+ }
+
+ public final MessageRelease setSetRedelivered(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageRelease setRedelivered(boolean value) {
+ return setSetRedelivered(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.transfers);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.transfers = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("transfers", getTransfers());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("setRedelivered", getSetRedelivered());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageResume.java b/java/common/src/main/java/org/apache/qpid/transport/MessageResume.java
new file mode 100644
index 0000000000..e0dfbdfd57
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageResume.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageResume extends Method {
+
+ public static final int TYPE = 1030;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+ private String resumeId;
+
+
+ public MessageResume() {}
+
+
+ public MessageResume(String destination, String resumeId, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+ if(resumeId != null) {
+ setResumeId(resumeId);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageResume(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageResume clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageResume setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageResume destination(String value) {
+ return setDestination(value);
+ }
+
+ public final boolean hasResumeId() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageResume clearResumeId() {
+ packing_flags &= ~512;
+ this.resumeId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getResumeId() {
+ return resumeId;
+ }
+
+ public final MessageResume setResumeId(String value) {
+ this.resumeId = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageResume resumeId(String value) {
+ return setResumeId(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr16(this.resumeId);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.resumeId = dec.readStr16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("resumeId", getResumeId());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageResumeResult.java b/java/common/src/main/java/org/apache/qpid/transport/MessageResumeResult.java
new file mode 100644
index 0000000000..1524b09509
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageResumeResult.java
@@ -0,0 +1,139 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class MessageResumeResult extends Struct {
+
+ public static final int TYPE = 1029;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long offset;
+
+
+ public MessageResumeResult() {}
+
+
+ public MessageResumeResult(long offset) {
+ setOffset(offset);
+
+ }
+
+
+
+
+ public final boolean hasOffset() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageResumeResult clearOffset() {
+ packing_flags &= ~256;
+ this.offset = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getOffset() {
+ return offset;
+ }
+
+ public final MessageResumeResult setOffset(long value) {
+ this.offset = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageResumeResult offset(long value) {
+ return setOffset(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint64(this.offset);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.offset = dec.readUint64();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("offset", getOffset());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageSetFlowMode.java b/java/common/src/main/java/org/apache/qpid/transport/MessageSetFlowMode.java
new file mode 100644
index 0000000000..09457b9764
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageSetFlowMode.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageSetFlowMode extends Method {
+
+ public static final int TYPE = 1033;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+ private MessageFlowMode flowMode;
+
+
+ public MessageSetFlowMode() {}
+
+
+ public MessageSetFlowMode(String destination, MessageFlowMode flowMode, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+ if(flowMode != null) {
+ setFlowMode(flowMode);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageSetFlowMode(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageSetFlowMode clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageSetFlowMode setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSetFlowMode destination(String value) {
+ return setDestination(value);
+ }
+
+ public final boolean hasFlowMode() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageSetFlowMode clearFlowMode() {
+ packing_flags &= ~512;
+ this.flowMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageFlowMode getFlowMode() {
+ return flowMode;
+ }
+
+ public final MessageSetFlowMode setFlowMode(MessageFlowMode value) {
+ this.flowMode = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSetFlowMode flowMode(MessageFlowMode value) {
+ return setFlowMode(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint8(this.flowMode.getValue());
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.flowMode = MessageFlowMode.get(dec.readUint8());
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("flowMode", getFlowMode());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageStop.java b/java/common/src/main/java/org/apache/qpid/transport/MessageStop.java
new file mode 100644
index 0000000000..45bb0ffe68
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageStop.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageStop extends Method {
+
+ public static final int TYPE = 1036;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+
+
+ public MessageStop() {}
+
+
+ public MessageStop(String destination, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageStop(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageStop clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageStop setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageStop destination(String value) {
+ return setDestination(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageSubscribe.java b/java/common/src/main/java/org/apache/qpid/transport/MessageSubscribe.java
new file mode 100644
index 0000000000..4f9a1edf64
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageSubscribe.java
@@ -0,0 +1,443 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageSubscribe extends Method {
+
+ public static final int TYPE = 1031;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+ private String destination;
+ private MessageAcceptMode acceptMode;
+ private MessageAcquireMode acquireMode;
+ private String resumeId;
+ private long resumeTtl;
+ private Map<String,Object> arguments;
+
+
+ public MessageSubscribe() {}
+
+
+ public MessageSubscribe(String queue, String destination, MessageAcceptMode acceptMode, MessageAcquireMode acquireMode, String resumeId, long resumeTtl, Map<String,Object> arguments, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(destination != null) {
+ setDestination(destination);
+ }
+ if(acceptMode != null) {
+ setAcceptMode(acceptMode);
+ }
+ if(acquireMode != null) {
+ setAcquireMode(acquireMode);
+ }
+ if(resumeId != null) {
+ setResumeId(resumeId);
+ }
+ setResumeTtl(resumeTtl);
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case EXCLUSIVE: packing_flags |= 4096; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageSubscribe(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageSubscribe clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final MessageSubscribe setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasDestination() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageSubscribe clearDestination() {
+ packing_flags &= ~512;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageSubscribe setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe destination(String value) {
+ return setDestination(value);
+ }
+
+ public final boolean hasAcceptMode() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final MessageSubscribe clearAcceptMode() {
+ packing_flags &= ~1024;
+ this.acceptMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAcceptMode getAcceptMode() {
+ return acceptMode;
+ }
+
+ public final MessageSubscribe setAcceptMode(MessageAcceptMode value) {
+ this.acceptMode = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe acceptMode(MessageAcceptMode value) {
+ return setAcceptMode(value);
+ }
+
+ public final boolean hasAcquireMode() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final MessageSubscribe clearAcquireMode() {
+ packing_flags &= ~2048;
+ this.acquireMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAcquireMode getAcquireMode() {
+ return acquireMode;
+ }
+
+ public final MessageSubscribe setAcquireMode(MessageAcquireMode value) {
+ this.acquireMode = value;
+ packing_flags |= 2048;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe acquireMode(MessageAcquireMode value) {
+ return setAcquireMode(value);
+ }
+
+ public final boolean hasExclusive() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final MessageSubscribe clearExclusive() {
+ packing_flags &= ~4096;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getExclusive() {
+ return hasExclusive();
+ }
+
+ public final MessageSubscribe setExclusive(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 4096;
+ }
+ else
+ {
+ packing_flags &= ~4096;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe exclusive(boolean value) {
+ return setExclusive(value);
+ }
+
+ public final boolean hasResumeId() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final MessageSubscribe clearResumeId() {
+ packing_flags &= ~8192;
+ this.resumeId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getResumeId() {
+ return resumeId;
+ }
+
+ public final MessageSubscribe setResumeId(String value) {
+ this.resumeId = value;
+ packing_flags |= 8192;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe resumeId(String value) {
+ return setResumeId(value);
+ }
+
+ public final boolean hasResumeTtl() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final MessageSubscribe clearResumeTtl() {
+ packing_flags &= ~16384;
+ this.resumeTtl = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getResumeTtl() {
+ return resumeTtl;
+ }
+
+ public final MessageSubscribe setResumeTtl(long value) {
+ this.resumeTtl = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe resumeTtl(long value) {
+ return setResumeTtl(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 32768) != 0;
+ }
+
+ public final MessageSubscribe clearArguments() {
+ packing_flags &= ~32768;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final MessageSubscribe setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 32768;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageSubscribe arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint8(this.acceptMode.getValue());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ enc.writeUint8(this.acquireMode.getValue());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ enc.writeStr16(this.resumeId);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeUint64(this.resumeTtl);
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.acceptMode = MessageAcceptMode.get(dec.readUint8());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ this.acquireMode = MessageAcquireMode.get(dec.readUint8());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ this.resumeId = dec.readStr16();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.resumeTtl = dec.readUint64();
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("acceptMode", getAcceptMode());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("acquireMode", getAcquireMode());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("exclusive", getExclusive());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("resumeId", getResumeId());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("resumeTtl", getResumeTtl());
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MessageTransfer.java b/java/common/src/main/java/org/apache/qpid/transport/MessageTransfer.java
new file mode 100644
index 0000000000..38fe5d89d8
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MessageTransfer.java
@@ -0,0 +1,302 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import java.nio.ByteBuffer;
+import org.apache.qpid.util.Strings;
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class MessageTransfer extends Method {
+
+ public static final int TYPE = 1025;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return true;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String destination;
+ private MessageAcceptMode acceptMode;
+ private MessageAcquireMode acquireMode;
+ private Header header;
+ private ByteBuffer body;
+
+
+ public MessageTransfer() {}
+
+
+ public MessageTransfer(String destination, MessageAcceptMode acceptMode, MessageAcquireMode acquireMode, Header header, java.nio.ByteBuffer body, Option ... _options) {
+ if(destination != null) {
+ setDestination(destination);
+ }
+ if(acceptMode != null) {
+ setAcceptMode(acceptMode);
+ }
+ if(acquireMode != null) {
+ setAcquireMode(acquireMode);
+ }
+ setHeader(header);
+ setBody(body);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.messageTransfer(context, this);
+ }
+
+
+ public final boolean hasDestination() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final MessageTransfer clearDestination() {
+ packing_flags &= ~256;
+ this.destination = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getDestination() {
+ return destination;
+ }
+
+ public final MessageTransfer setDestination(String value) {
+ this.destination = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageTransfer destination(String value) {
+ return setDestination(value);
+ }
+
+ public final boolean hasAcceptMode() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final MessageTransfer clearAcceptMode() {
+ packing_flags &= ~512;
+ this.acceptMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAcceptMode getAcceptMode() {
+ return acceptMode;
+ }
+
+ public final MessageTransfer setAcceptMode(MessageAcceptMode value) {
+ this.acceptMode = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageTransfer acceptMode(MessageAcceptMode value) {
+ return setAcceptMode(value);
+ }
+
+ public final boolean hasAcquireMode() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final MessageTransfer clearAcquireMode() {
+ packing_flags &= ~1024;
+ this.acquireMode = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageAcquireMode getAcquireMode() {
+ return acquireMode;
+ }
+
+ public final MessageTransfer setAcquireMode(MessageAcquireMode value) {
+ this.acquireMode = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final MessageTransfer acquireMode(MessageAcquireMode value) {
+ return setAcquireMode(value);
+ }
+
+
+ public final Header getHeader() {
+ return this.header;
+ }
+
+ public final void setHeader(Header header) {
+ this.header = header;
+ }
+
+ public final MessageTransfer header(Header header) {
+ setHeader(header);
+ return this;
+ }
+
+ public int getBodySize()
+ {
+ return this.body == null ? 0 : this.body.remaining();
+ }
+
+ public final ByteBuffer getBody() {
+ if (this.body == null)
+ {
+ return null;
+ }
+ else
+ {
+ return this.body.slice();
+ }
+ }
+
+ public final void setBody(ByteBuffer body) {
+ this.body = body;
+ }
+
+ public final MessageTransfer body(ByteBuffer body)
+ {
+ setBody(body);
+ return this;
+ }
+
+ public final byte[] getBodyBytes() {
+ ByteBuffer buf = getBody();
+ byte[] bytes = new byte[buf.remaining()];
+ buf.get(bytes);
+ return bytes;
+ }
+
+ public final void setBody(byte[] body)
+ {
+ setBody(ByteBuffer.wrap(body));
+ }
+
+ public final String getBodyString() {
+ return Strings.fromUTF8(getBodyBytes());
+ }
+
+ public final void setBody(String body) {
+ setBody(Strings.toUTF8(body));
+ }
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.destination);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint8(this.acceptMode.getValue());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeUint8(this.acquireMode.getValue());
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.destination = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.acceptMode = MessageAcceptMode.get(dec.readUint8());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.acquireMode = MessageAcquireMode.get(dec.readUint8());
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("destination", getDestination());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("acceptMode", getAcceptMode());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("acquireMode", getAcquireMode());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/MethodDelegate.java b/java/common/src/main/java/org/apache/qpid/transport/MethodDelegate.java
new file mode 100644
index 0000000000..33f52d9f2b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/MethodDelegate.java
@@ -0,0 +1,217 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public abstract class MethodDelegate<C> {
+
+ public abstract void handle(C context, Method method);
+
+ public void connectionStart(C context, ConnectionStart method) {
+ handle(context, method);
+ }
+ public void connectionStartOk(C context, ConnectionStartOk method) {
+ handle(context, method);
+ }
+ public void connectionSecure(C context, ConnectionSecure method) {
+ handle(context, method);
+ }
+ public void connectionSecureOk(C context, ConnectionSecureOk method) {
+ handle(context, method);
+ }
+ public void connectionTune(C context, ConnectionTune method) {
+ handle(context, method);
+ }
+ public void connectionTuneOk(C context, ConnectionTuneOk method) {
+ handle(context, method);
+ }
+ public void connectionOpen(C context, ConnectionOpen method) {
+ handle(context, method);
+ }
+ public void connectionOpenOk(C context, ConnectionOpenOk method) {
+ handle(context, method);
+ }
+ public void connectionRedirect(C context, ConnectionRedirect method) {
+ handle(context, method);
+ }
+ public void connectionHeartbeat(C context, ConnectionHeartbeat method) {
+ handle(context, method);
+ }
+ public void connectionClose(C context, ConnectionClose method) {
+ handle(context, method);
+ }
+ public void connectionCloseOk(C context, ConnectionCloseOk method) {
+ handle(context, method);
+ }
+ public void sessionAttach(C context, SessionAttach method) {
+ handle(context, method);
+ }
+ public void sessionAttached(C context, SessionAttached method) {
+ handle(context, method);
+ }
+ public void sessionDetach(C context, SessionDetach method) {
+ handle(context, method);
+ }
+ public void sessionDetached(C context, SessionDetached method) {
+ handle(context, method);
+ }
+ public void sessionRequestTimeout(C context, SessionRequestTimeout method) {
+ handle(context, method);
+ }
+ public void sessionTimeout(C context, SessionTimeout method) {
+ handle(context, method);
+ }
+ public void sessionCommandPoint(C context, SessionCommandPoint method) {
+ handle(context, method);
+ }
+ public void sessionExpected(C context, SessionExpected method) {
+ handle(context, method);
+ }
+ public void sessionConfirmed(C context, SessionConfirmed method) {
+ handle(context, method);
+ }
+ public void sessionCompleted(C context, SessionCompleted method) {
+ handle(context, method);
+ }
+ public void sessionKnownCompleted(C context, SessionKnownCompleted method) {
+ handle(context, method);
+ }
+ public void sessionFlush(C context, SessionFlush method) {
+ handle(context, method);
+ }
+ public void sessionGap(C context, SessionGap method) {
+ handle(context, method);
+ }
+ public void executionSync(C context, ExecutionSync method) {
+ handle(context, method);
+ }
+ public void executionResult(C context, ExecutionResult method) {
+ handle(context, method);
+ }
+ public void executionException(C context, ExecutionException method) {
+ handle(context, method);
+ }
+ public void messageTransfer(C context, MessageTransfer method) {
+ handle(context, method);
+ }
+ public void messageAccept(C context, MessageAccept method) {
+ handle(context, method);
+ }
+ public void messageReject(C context, MessageReject method) {
+ handle(context, method);
+ }
+ public void messageRelease(C context, MessageRelease method) {
+ handle(context, method);
+ }
+ public void messageAcquire(C context, MessageAcquire method) {
+ handle(context, method);
+ }
+ public void messageResume(C context, MessageResume method) {
+ handle(context, method);
+ }
+ public void messageSubscribe(C context, MessageSubscribe method) {
+ handle(context, method);
+ }
+ public void messageCancel(C context, MessageCancel method) {
+ handle(context, method);
+ }
+ public void messageSetFlowMode(C context, MessageSetFlowMode method) {
+ handle(context, method);
+ }
+ public void messageFlow(C context, MessageFlow method) {
+ handle(context, method);
+ }
+ public void messageFlush(C context, MessageFlush method) {
+ handle(context, method);
+ }
+ public void messageStop(C context, MessageStop method) {
+ handle(context, method);
+ }
+ public void txSelect(C context, TxSelect method) {
+ handle(context, method);
+ }
+ public void txCommit(C context, TxCommit method) {
+ handle(context, method);
+ }
+ public void txRollback(C context, TxRollback method) {
+ handle(context, method);
+ }
+ public void dtxSelect(C context, DtxSelect method) {
+ handle(context, method);
+ }
+ public void dtxStart(C context, DtxStart method) {
+ handle(context, method);
+ }
+ public void dtxEnd(C context, DtxEnd method) {
+ handle(context, method);
+ }
+ public void dtxCommit(C context, DtxCommit method) {
+ handle(context, method);
+ }
+ public void dtxForget(C context, DtxForget method) {
+ handle(context, method);
+ }
+ public void dtxGetTimeout(C context, DtxGetTimeout method) {
+ handle(context, method);
+ }
+ public void dtxPrepare(C context, DtxPrepare method) {
+ handle(context, method);
+ }
+ public void dtxRecover(C context, DtxRecover method) {
+ handle(context, method);
+ }
+ public void dtxRollback(C context, DtxRollback method) {
+ handle(context, method);
+ }
+ public void dtxSetTimeout(C context, DtxSetTimeout method) {
+ handle(context, method);
+ }
+ public void exchangeDeclare(C context, ExchangeDeclare method) {
+ handle(context, method);
+ }
+ public void exchangeDelete(C context, ExchangeDelete method) {
+ handle(context, method);
+ }
+ public void exchangeQuery(C context, ExchangeQuery method) {
+ handle(context, method);
+ }
+ public void exchangeBind(C context, ExchangeBind method) {
+ handle(context, method);
+ }
+ public void exchangeUnbind(C context, ExchangeUnbind method) {
+ handle(context, method);
+ }
+ public void exchangeBound(C context, ExchangeBound method) {
+ handle(context, method);
+ }
+ public void queueDeclare(C context, QueueDeclare method) {
+ handle(context, method);
+ }
+ public void queueDelete(C context, QueueDelete method) {
+ handle(context, method);
+ }
+ public void queuePurge(C context, QueuePurge method) {
+ handle(context, method);
+ }
+ public void queueQuery(C context, QueueQuery method) {
+ handle(context, method);
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Option.java b/java/common/src/main/java/org/apache/qpid/transport/Option.java
new file mode 100644
index 0000000000..72187795b3
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Option.java
@@ -0,0 +1,60 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum Option {
+
+ SYNC,
+ DISCARD_UNROUTABLE,
+ IMMEDIATE,
+ REDELIVERED,
+ FIRST,
+ LAST,
+ DURABLE,
+ NOT_FOUND,
+ EXCHANGE_NOT_FOUND,
+ QUEUE_NOT_FOUND,
+ QUEUE_NOT_MATCHED,
+ KEY_NOT_MATCHED,
+ ARGS_NOT_MATCHED,
+ EXCLUSIVE,
+ AUTO_DELETE,
+ INSIST,
+ FORCE,
+ TIMELY_REPLY,
+ EXPECTED,
+ CONFIRMED,
+ COMPLETED,
+ SET_REDELIVERED,
+ JOIN,
+ RESUME,
+ FAIL,
+ SUSPEND,
+ ONE_PHASE,
+ PASSIVE,
+ IF_UNUSED,
+ IF_EMPTY,
+
+ BATCH,
+ UNRELIABLE,
+ NONE
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/QueueDeclare.java b/java/common/src/main/java/org/apache/qpid/transport/QueueDeclare.java
new file mode 100644
index 0000000000..2b7495e622
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/QueueDeclare.java
@@ -0,0 +1,394 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class QueueDeclare extends Method {
+
+ public static final int TYPE = 2049;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+ private String alternateExchange;
+ private Map<String,Object> arguments;
+
+
+ public QueueDeclare() {}
+
+
+ public QueueDeclare(String queue, String alternateExchange, Map<String,Object> arguments, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(alternateExchange != null) {
+ setAlternateExchange(alternateExchange);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case PASSIVE: packing_flags |= 1024; break;
+ case DURABLE: packing_flags |= 2048; break;
+ case EXCLUSIVE: packing_flags |= 4096; break;
+ case AUTO_DELETE: packing_flags |= 8192; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.queueDeclare(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final QueueDeclare clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final QueueDeclare setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasAlternateExchange() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final QueueDeclare clearAlternateExchange() {
+ packing_flags &= ~512;
+ this.alternateExchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getAlternateExchange() {
+ return alternateExchange;
+ }
+
+ public final QueueDeclare setAlternateExchange(String value) {
+ this.alternateExchange = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare alternateExchange(String value) {
+ return setAlternateExchange(value);
+ }
+
+ public final boolean hasPassive() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final QueueDeclare clearPassive() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getPassive() {
+ return hasPassive();
+ }
+
+ public final QueueDeclare setPassive(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare passive(boolean value) {
+ return setPassive(value);
+ }
+
+ public final boolean hasDurable() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final QueueDeclare clearDurable() {
+ packing_flags &= ~2048;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getDurable() {
+ return hasDurable();
+ }
+
+ public final QueueDeclare setDurable(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 2048;
+ }
+ else
+ {
+ packing_flags &= ~2048;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare durable(boolean value) {
+ return setDurable(value);
+ }
+
+ public final boolean hasExclusive() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final QueueDeclare clearExclusive() {
+ packing_flags &= ~4096;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getExclusive() {
+ return hasExclusive();
+ }
+
+ public final QueueDeclare setExclusive(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 4096;
+ }
+ else
+ {
+ packing_flags &= ~4096;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare exclusive(boolean value) {
+ return setExclusive(value);
+ }
+
+ public final boolean hasAutoDelete() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final QueueDeclare clearAutoDelete() {
+ packing_flags &= ~8192;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getAutoDelete() {
+ return hasAutoDelete();
+ }
+
+ public final QueueDeclare setAutoDelete(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 8192;
+ }
+ else
+ {
+ packing_flags &= ~8192;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare autoDelete(boolean value) {
+ return setAutoDelete(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final QueueDeclare clearArguments() {
+ packing_flags &= ~16384;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final QueueDeclare setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDeclare arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.alternateExchange);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.alternateExchange = dec.readStr8();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("alternateExchange", getAlternateExchange());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("passive", getPassive());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("durable", getDurable());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("exclusive", getExclusive());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("autoDelete", getAutoDelete());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/QueueDelete.java b/java/common/src/main/java/org/apache/qpid/transport/QueueDelete.java
new file mode 100644
index 0000000000..2c0040ff1d
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/QueueDelete.java
@@ -0,0 +1,232 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class QueueDelete extends Method {
+
+ public static final int TYPE = 2050;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+
+
+ public QueueDelete() {}
+
+
+ public QueueDelete(String queue, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case IF_UNUSED: packing_flags |= 512; break;
+ case IF_EMPTY: packing_flags |= 1024; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.queueDelete(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final QueueDelete clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final QueueDelete setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDelete queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasIfUnused() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final QueueDelete clearIfUnused() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getIfUnused() {
+ return hasIfUnused();
+ }
+
+ public final QueueDelete setIfUnused(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDelete ifUnused(boolean value) {
+ return setIfUnused(value);
+ }
+
+ public final boolean hasIfEmpty() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final QueueDelete clearIfEmpty() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getIfEmpty() {
+ return hasIfEmpty();
+ }
+
+ public final QueueDelete setIfEmpty(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueDelete ifEmpty(boolean value) {
+ return setIfEmpty(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("ifUnused", getIfUnused());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("ifEmpty", getIfEmpty());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/QueuePurge.java b/java/common/src/main/java/org/apache/qpid/transport/QueuePurge.java
new file mode 100644
index 0000000000..972149e251
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/QueuePurge.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class QueuePurge extends Method {
+
+ public static final int TYPE = 2051;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+
+
+ public QueuePurge() {}
+
+
+ public QueuePurge(String queue, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.queuePurge(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final QueuePurge clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final QueuePurge setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueuePurge queue(String value) {
+ return setQueue(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/QueueQuery.java b/java/common/src/main/java/org/apache/qpid/transport/QueueQuery.java
new file mode 100644
index 0000000000..22da74f6b7
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/QueueQuery.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class QueueQuery extends Method {
+
+ public static final int TYPE = 2052;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+
+
+ public QueueQuery() {}
+
+
+ public QueueQuery(String queue, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.queueQuery(context, this);
+ }
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final QueueQuery clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final QueueQuery setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQuery queue(String value) {
+ return setQueue(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/QueueQueryResult.java b/java/common/src/main/java/org/apache/qpid/transport/QueueQueryResult.java
new file mode 100644
index 0000000000..ca0c027603
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/QueueQueryResult.java
@@ -0,0 +1,429 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class QueueQueryResult extends Struct {
+
+ public static final int TYPE = 2049;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String queue;
+ private String alternateExchange;
+ private Map<String,Object> arguments;
+ private long messageCount;
+ private long subscriberCount;
+
+
+ public QueueQueryResult() {}
+
+
+ public QueueQueryResult(String queue, String alternateExchange, Map<String,Object> arguments, long messageCount, long subscriberCount, Option ... _options) {
+ if(queue != null) {
+ setQueue(queue);
+ }
+ if(alternateExchange != null) {
+ setAlternateExchange(alternateExchange);
+ }
+ if(arguments != null) {
+ setArguments(arguments);
+ }
+ setMessageCount(messageCount);
+ setSubscriberCount(subscriberCount);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case DURABLE: packing_flags |= 1024; break;
+ case EXCLUSIVE: packing_flags |= 2048; break;
+ case AUTO_DELETE: packing_flags |= 4096; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasQueue() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final QueueQueryResult clearQueue() {
+ packing_flags &= ~256;
+ this.queue = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getQueue() {
+ return queue;
+ }
+
+ public final QueueQueryResult setQueue(String value) {
+ this.queue = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult queue(String value) {
+ return setQueue(value);
+ }
+
+ public final boolean hasAlternateExchange() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final QueueQueryResult clearAlternateExchange() {
+ packing_flags &= ~512;
+ this.alternateExchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getAlternateExchange() {
+ return alternateExchange;
+ }
+
+ public final QueueQueryResult setAlternateExchange(String value) {
+ this.alternateExchange = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult alternateExchange(String value) {
+ return setAlternateExchange(value);
+ }
+
+ public final boolean hasDurable() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final QueueQueryResult clearDurable() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getDurable() {
+ return hasDurable();
+ }
+
+ public final QueueQueryResult setDurable(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult durable(boolean value) {
+ return setDurable(value);
+ }
+
+ public final boolean hasExclusive() {
+ return (packing_flags & 2048) != 0;
+ }
+
+ public final QueueQueryResult clearExclusive() {
+ packing_flags &= ~2048;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getExclusive() {
+ return hasExclusive();
+ }
+
+ public final QueueQueryResult setExclusive(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 2048;
+ }
+ else
+ {
+ packing_flags &= ~2048;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult exclusive(boolean value) {
+ return setExclusive(value);
+ }
+
+ public final boolean hasAutoDelete() {
+ return (packing_flags & 4096) != 0;
+ }
+
+ public final QueueQueryResult clearAutoDelete() {
+ packing_flags &= ~4096;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getAutoDelete() {
+ return hasAutoDelete();
+ }
+
+ public final QueueQueryResult setAutoDelete(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 4096;
+ }
+ else
+ {
+ packing_flags &= ~4096;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult autoDelete(boolean value) {
+ return setAutoDelete(value);
+ }
+
+ public final boolean hasArguments() {
+ return (packing_flags & 8192) != 0;
+ }
+
+ public final QueueQueryResult clearArguments() {
+ packing_flags &= ~8192;
+ this.arguments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final Map<String,Object> getArguments() {
+ return arguments;
+ }
+
+ public final QueueQueryResult setArguments(Map<String,Object> value) {
+ this.arguments = value;
+ packing_flags |= 8192;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult arguments(Map<String,Object> value) {
+ return setArguments(value);
+ }
+
+ public final boolean hasMessageCount() {
+ return (packing_flags & 16384) != 0;
+ }
+
+ public final QueueQueryResult clearMessageCount() {
+ packing_flags &= ~16384;
+ this.messageCount = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getMessageCount() {
+ return messageCount;
+ }
+
+ public final QueueQueryResult setMessageCount(long value) {
+ this.messageCount = value;
+ packing_flags |= 16384;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult messageCount(long value) {
+ return setMessageCount(value);
+ }
+
+ public final boolean hasSubscriberCount() {
+ return (packing_flags & 32768) != 0;
+ }
+
+ public final QueueQueryResult clearSubscriberCount() {
+ packing_flags &= ~32768;
+ this.subscriberCount = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getSubscriberCount() {
+ return subscriberCount;
+ }
+
+ public final QueueQueryResult setSubscriberCount(long value) {
+ this.subscriberCount = value;
+ packing_flags |= 32768;
+ setDirty(true);
+ return this;
+ }
+
+ public final QueueQueryResult subscriberCount(long value) {
+ return setSubscriberCount(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.queue);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.alternateExchange);
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ enc.writeMap(this.arguments);
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ enc.writeUint32(this.messageCount);
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ enc.writeUint32(this.subscriberCount);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.queue = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.alternateExchange = dec.readStr8();
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ this.arguments = dec.readMap();
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ this.messageCount = dec.readUint32();
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ this.subscriberCount = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("queue", getQueue());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("alternateExchange", getAlternateExchange());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("durable", getDurable());
+ }
+ if ((packing_flags & 2048) != 0)
+ {
+ result.put("exclusive", getExclusive());
+ }
+ if ((packing_flags & 4096) != 0)
+ {
+ result.put("autoDelete", getAutoDelete());
+ }
+ if ((packing_flags & 8192) != 0)
+ {
+ result.put("arguments", getArguments());
+ }
+ if ((packing_flags & 16384) != 0)
+ {
+ result.put("messageCount", getMessageCount());
+ }
+ if ((packing_flags & 32768) != 0)
+ {
+ result.put("subscriberCount", getSubscriberCount());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/RecoverResult.java b/java/common/src/main/java/org/apache/qpid/transport/RecoverResult.java
new file mode 100644
index 0000000000..7a78f373f6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/RecoverResult.java
@@ -0,0 +1,141 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class RecoverResult extends Struct {
+
+ public static final int TYPE = 1539;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private java.util.List<Object> inDoubt;
+
+
+ public RecoverResult() {}
+
+
+ public RecoverResult(java.util.List<Object> inDoubt) {
+ if(inDoubt != null) {
+ setInDoubt(inDoubt);
+ }
+
+ }
+
+
+
+
+ public final boolean hasInDoubt() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final RecoverResult clearInDoubt() {
+ packing_flags &= ~256;
+ this.inDoubt = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getInDoubt() {
+ return inDoubt;
+ }
+
+ public final RecoverResult setInDoubt(java.util.List<Object> value) {
+ this.inDoubt = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final RecoverResult inDoubt(java.util.List<Object> value) {
+ return setInDoubt(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeArray(this.inDoubt);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.inDoubt = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("inDoubt", getInDoubt());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ReplyTo.java b/java/common/src/main/java/org/apache/qpid/transport/ReplyTo.java
new file mode 100644
index 0000000000..38340db5ce
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/ReplyTo.java
@@ -0,0 +1,200 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class ReplyTo extends Struct {
+
+ public static final int TYPE = -3;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 2;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private String exchange;
+ private String routingKey;
+
+
+ public ReplyTo() {}
+
+
+ public ReplyTo(String exchange, String routingKey) {
+ if(exchange != null) {
+ setExchange(exchange);
+ }
+ if(routingKey != null) {
+ setRoutingKey(routingKey);
+ }
+
+ }
+
+
+
+
+ public final boolean hasExchange() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final ReplyTo clearExchange() {
+ packing_flags &= ~256;
+ this.exchange = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getExchange() {
+ return exchange;
+ }
+
+ public final ReplyTo setExchange(String value) {
+ this.exchange = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final ReplyTo exchange(String value) {
+ return setExchange(value);
+ }
+
+ public final boolean hasRoutingKey() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final ReplyTo clearRoutingKey() {
+ packing_flags &= ~512;
+ this.routingKey = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final String getRoutingKey() {
+ return routingKey;
+ }
+
+ public final ReplyTo setRoutingKey(String value) {
+ this.routingKey = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final ReplyTo routingKey(String value) {
+ return setRoutingKey(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeStr8(this.exchange);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeStr8(this.routingKey);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.exchange = dec.readStr8();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.routingKey = dec.readStr8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("exchange", getExchange());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("routingKey", getRoutingKey());
+ }
+
+
+ return result;
+ }
+
+ public boolean equals(final Object obj){
+ if (this == obj){
+ return true;
+ }
+
+ if(!(obj instanceof ReplyTo)){
+ return false;
+ }
+
+ final ReplyTo reply = (ReplyTo) obj;
+ return (routingKey == null ? reply.getRoutingKey() == null : routingKey.equals(reply.getRoutingKey()))
+ && (exchange == null ? reply.getExchange() == null : exchange.equals(reply.getExchange()));
+ }
+
+ public int hashCode(){
+ int result = routingKey == null ? 1 : routingKey.hashCode();
+ return 31 * result + (exchange == null ? 5 : exchange.hashCode());
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SegmentType.java b/java/common/src/main/java/org/apache/qpid/transport/SegmentType.java
new file mode 100644
index 0000000000..c9ba87abf4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SegmentType.java
@@ -0,0 +1,54 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum SegmentType {
+
+ CONTROL((short) 0),
+ COMMAND((short) 1),
+ HEADER((short) 2),
+ BODY((short) 3);
+
+ private final short value;
+
+ SegmentType(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static SegmentType get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return CONTROL;
+ case (short) 1: return COMMAND;
+ case (short) 2: return HEADER;
+ case (short) 3: return BODY;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionAttach.java b/java/common/src/main/java/org/apache/qpid/transport/SessionAttach.java
new file mode 100644
index 0000000000..cc056c2157
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionAttach.java
@@ -0,0 +1,193 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionAttach extends Method {
+
+ public static final int TYPE = 513;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L2;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private byte[] name;
+
+
+ public SessionAttach() {}
+
+
+ public SessionAttach(byte[] name, Option ... _options) {
+ if(name != null) {
+ setName(name);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case FORCE: packing_flags |= 512; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionAttach(context, this);
+ }
+
+
+ public final boolean hasName() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionAttach clearName() {
+ packing_flags &= ~256;
+ this.name = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getName() {
+ return name;
+ }
+
+ public final SessionAttach setName(byte[] value) {
+ this.name = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionAttach name(byte[] value) {
+ return setName(value);
+ }
+
+ public final boolean hasForce() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionAttach clearForce() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getForce() {
+ return hasForce();
+ }
+
+ public final SessionAttach setForce(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionAttach force(boolean value) {
+ return setForce(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin16(this.name);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.name = dec.readVbin16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("name", getName());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("force", getForce());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionAttached.java b/java/common/src/main/java/org/apache/qpid/transport/SessionAttached.java
new file mode 100644
index 0000000000..edba391120
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionAttached.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionAttached extends Method {
+
+ public static final int TYPE = 514;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L2;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private byte[] name;
+
+
+ public SessionAttached() {}
+
+
+ public SessionAttached(byte[] name, Option ... _options) {
+ if(name != null) {
+ setName(name);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionAttached(context, this);
+ }
+
+
+ public final boolean hasName() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionAttached clearName() {
+ packing_flags &= ~256;
+ this.name = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getName() {
+ return name;
+ }
+
+ public final SessionAttached setName(byte[] value) {
+ this.name = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionAttached name(byte[] value) {
+ return setName(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin16(this.name);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.name = dec.readVbin16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("name", getName());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionCommandFragment.java b/java/common/src/main/java/org/apache/qpid/transport/SessionCommandFragment.java
new file mode 100644
index 0000000000..6ae2d45238
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionCommandFragment.java
@@ -0,0 +1,138 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class SessionCommandFragment extends Struct {
+
+ public static final int TYPE = -2;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 0;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private int commandId;
+ private RangeSet byteRanges;
+
+
+ public SessionCommandFragment() {}
+
+
+ public SessionCommandFragment(int commandId, RangeSet byteRanges) {
+ setCommandId(commandId);
+ if(byteRanges != null) {
+ setByteRanges(byteRanges);
+ }
+
+ }
+
+
+
+
+ public final int getCommandId() {
+ return commandId;
+ }
+
+ public final SessionCommandFragment setCommandId(int value) {
+ this.commandId = value;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCommandFragment commandId(int value) {
+ return setCommandId(value);
+ }
+
+ public final RangeSet getByteRanges() {
+ return byteRanges;
+ }
+
+ public final SessionCommandFragment setByteRanges(RangeSet value) {
+ this.byteRanges = value;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCommandFragment byteRanges(RangeSet value) {
+ return setByteRanges(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeSequenceNo(this.commandId);
+ enc.writeByteRanges(this.byteRanges);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ this.commandId = dec.readSequenceNo();
+ this.byteRanges = dec.readByteRanges();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ result.put("commandId", getCommandId());
+ result.put("byteRanges", getByteRanges());
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionCommandPoint.java b/java/common/src/main/java/org/apache/qpid/transport/SessionCommandPoint.java
new file mode 100644
index 0000000000..b0bb0559fe
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionCommandPoint.java
@@ -0,0 +1,192 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionCommandPoint extends Method {
+
+ public static final int TYPE = 519;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private int commandId;
+ private long commandOffset;
+
+
+ public SessionCommandPoint() {}
+
+
+ public SessionCommandPoint(int commandId, long commandOffset, Option ... _options) {
+ setCommandId(commandId);
+ setCommandOffset(commandOffset);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionCommandPoint(context, this);
+ }
+
+
+ public final boolean hasCommandId() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionCommandPoint clearCommandId() {
+ packing_flags &= ~256;
+ this.commandId = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final int getCommandId() {
+ return commandId;
+ }
+
+ public final SessionCommandPoint setCommandId(int value) {
+ this.commandId = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCommandPoint commandId(int value) {
+ return setCommandId(value);
+ }
+
+ public final boolean hasCommandOffset() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionCommandPoint clearCommandOffset() {
+ packing_flags &= ~512;
+ this.commandOffset = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getCommandOffset() {
+ return commandOffset;
+ }
+
+ public final SessionCommandPoint setCommandOffset(long value) {
+ this.commandOffset = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCommandPoint commandOffset(long value) {
+ return setCommandOffset(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceNo(this.commandId);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint64(this.commandOffset);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commandId = dec.readSequenceNo();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.commandOffset = dec.readUint64();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commandId", getCommandId());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("commandOffset", getCommandOffset());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionCompleted.java b/java/common/src/main/java/org/apache/qpid/transport/SessionCompleted.java
new file mode 100644
index 0000000000..2b30f376b2
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionCompleted.java
@@ -0,0 +1,193 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionCompleted extends Method {
+
+ public static final int TYPE = 522;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet commands;
+
+
+ public SessionCompleted() {}
+
+
+ public SessionCompleted(RangeSet commands, Option ... _options) {
+ if(commands != null) {
+ setCommands(commands);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case TIMELY_REPLY: packing_flags |= 512; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionCompleted(context, this);
+ }
+
+
+ public final boolean hasCommands() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionCompleted clearCommands() {
+ packing_flags &= ~256;
+ this.commands = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getCommands() {
+ return commands;
+ }
+
+ public final SessionCompleted setCommands(RangeSet value) {
+ this.commands = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCompleted commands(RangeSet value) {
+ return setCommands(value);
+ }
+
+ public final boolean hasTimelyReply() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionCompleted clearTimelyReply() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getTimelyReply() {
+ return hasTimelyReply();
+ }
+
+ public final SessionCompleted setTimelyReply(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionCompleted timelyReply(boolean value) {
+ return setTimelyReply(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.commands);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commands = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commands", getCommands());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("timelyReply", getTimelyReply());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionConfirmed.java b/java/common/src/main/java/org/apache/qpid/transport/SessionConfirmed.java
new file mode 100644
index 0000000000..d162fb8e10
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionConfirmed.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionConfirmed extends Method {
+
+ public static final int TYPE = 521;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet commands;
+ private java.util.List<Object> fragments;
+
+
+ public SessionConfirmed() {}
+
+
+ public SessionConfirmed(RangeSet commands, java.util.List<Object> fragments, Option ... _options) {
+ if(commands != null) {
+ setCommands(commands);
+ }
+ if(fragments != null) {
+ setFragments(fragments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionConfirmed(context, this);
+ }
+
+
+ public final boolean hasCommands() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionConfirmed clearCommands() {
+ packing_flags &= ~256;
+ this.commands = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getCommands() {
+ return commands;
+ }
+
+ public final SessionConfirmed setCommands(RangeSet value) {
+ this.commands = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionConfirmed commands(RangeSet value) {
+ return setCommands(value);
+ }
+
+ public final boolean hasFragments() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionConfirmed clearFragments() {
+ packing_flags &= ~512;
+ this.fragments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getFragments() {
+ return fragments;
+ }
+
+ public final SessionConfirmed setFragments(java.util.List<Object> value) {
+ this.fragments = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionConfirmed fragments(java.util.List<Object> value) {
+ return setFragments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.commands);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeArray(this.fragments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commands = dec.readSequenceSet();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.fragments = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commands", getCommands());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("fragments", getFragments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionDetach.java b/java/common/src/main/java/org/apache/qpid/transport/SessionDetach.java
new file mode 100644
index 0000000000..c6f8e9bad4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionDetach.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionDetach extends Method {
+
+ public static final int TYPE = 515;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L2;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private byte[] name;
+
+
+ public SessionDetach() {}
+
+
+ public SessionDetach(byte[] name, Option ... _options) {
+ if(name != null) {
+ setName(name);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionDetach(context, this);
+ }
+
+
+ public final boolean hasName() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionDetach clearName() {
+ packing_flags &= ~256;
+ this.name = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getName() {
+ return name;
+ }
+
+ public final SessionDetach setName(byte[] value) {
+ this.name = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionDetach name(byte[] value) {
+ return setName(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin16(this.name);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.name = dec.readVbin16();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("name", getName());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionDetachCode.java b/java/common/src/main/java/org/apache/qpid/transport/SessionDetachCode.java
new file mode 100644
index 0000000000..892f0edc36
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionDetachCode.java
@@ -0,0 +1,56 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum SessionDetachCode {
+
+ NORMAL((short) 0),
+ SESSION_BUSY((short) 1),
+ TRANSPORT_BUSY((short) 2),
+ NOT_ATTACHED((short) 3),
+ UNKNOWN_IDS((short) 4);
+
+ private final short value;
+
+ SessionDetachCode(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static SessionDetachCode get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return NORMAL;
+ case (short) 1: return SESSION_BUSY;
+ case (short) 2: return TRANSPORT_BUSY;
+ case (short) 3: return NOT_ATTACHED;
+ case (short) 4: return UNKNOWN_IDS;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionDetached.java b/java/common/src/main/java/org/apache/qpid/transport/SessionDetached.java
new file mode 100644
index 0000000000..d577d7c28a
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionDetached.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionDetached extends Method {
+
+ public static final int TYPE = 516;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L2;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private byte[] name;
+ private SessionDetachCode code;
+
+
+ public SessionDetached() {}
+
+
+ public SessionDetached(byte[] name, SessionDetachCode code, Option ... _options) {
+ if(name != null) {
+ setName(name);
+ }
+ if(code != null) {
+ setCode(code);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionDetached(context, this);
+ }
+
+
+ public final boolean hasName() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionDetached clearName() {
+ packing_flags &= ~256;
+ this.name = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getName() {
+ return name;
+ }
+
+ public final SessionDetached setName(byte[] value) {
+ this.name = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionDetached name(byte[] value) {
+ return setName(value);
+ }
+
+ public final boolean hasCode() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionDetached clearCode() {
+ packing_flags &= ~512;
+ this.code = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionDetachCode getCode() {
+ return code;
+ }
+
+ public final SessionDetached setCode(SessionDetachCode value) {
+ this.code = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionDetached code(SessionDetachCode value) {
+ return setCode(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeVbin16(this.name);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeUint8(this.code.getValue());
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.name = dec.readVbin16();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.code = SessionDetachCode.get(dec.readUint8());
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("name", getName());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("code", getCode());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionExpected.java b/java/common/src/main/java/org/apache/qpid/transport/SessionExpected.java
new file mode 100644
index 0000000000..324316f88c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionExpected.java
@@ -0,0 +1,196 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionExpected extends Method {
+
+ public static final int TYPE = 520;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet commands;
+ private java.util.List<Object> fragments;
+
+
+ public SessionExpected() {}
+
+
+ public SessionExpected(RangeSet commands, java.util.List<Object> fragments, Option ... _options) {
+ if(commands != null) {
+ setCommands(commands);
+ }
+ if(fragments != null) {
+ setFragments(fragments);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionExpected(context, this);
+ }
+
+
+ public final boolean hasCommands() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionExpected clearCommands() {
+ packing_flags &= ~256;
+ this.commands = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getCommands() {
+ return commands;
+ }
+
+ public final SessionExpected setCommands(RangeSet value) {
+ this.commands = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionExpected commands(RangeSet value) {
+ return setCommands(value);
+ }
+
+ public final boolean hasFragments() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionExpected clearFragments() {
+ packing_flags &= ~512;
+ this.fragments = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final java.util.List<Object> getFragments() {
+ return fragments;
+ }
+
+ public final SessionExpected setFragments(java.util.List<Object> value) {
+ this.fragments = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionExpected fragments(java.util.List<Object> value) {
+ return setFragments(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.commands);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeArray(this.fragments);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commands = dec.readSequenceSet();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.fragments = dec.readArray();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commands", getCommands());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("fragments", getFragments());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionFlush.java b/java/common/src/main/java/org/apache/qpid/transport/SessionFlush.java
new file mode 100644
index 0000000000..193fe9b255
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionFlush.java
@@ -0,0 +1,229 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionFlush extends Method {
+
+ public static final int TYPE = 524;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+ public SessionFlush() {}
+
+
+ public SessionFlush(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case EXPECTED: packing_flags |= 256; break;
+ case CONFIRMED: packing_flags |= 512; break;
+ case COMPLETED: packing_flags |= 1024; break;
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionFlush(context, this);
+ }
+
+
+ public final boolean hasExpected() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionFlush clearExpected() {
+ packing_flags &= ~256;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getExpected() {
+ return hasExpected();
+ }
+
+ public final SessionFlush setExpected(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 256;
+ }
+ else
+ {
+ packing_flags &= ~256;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionFlush expected(boolean value) {
+ return setExpected(value);
+ }
+
+ public final boolean hasConfirmed() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final SessionFlush clearConfirmed() {
+ packing_flags &= ~512;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getConfirmed() {
+ return hasConfirmed();
+ }
+
+ public final SessionFlush setConfirmed(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 512;
+ }
+ else
+ {
+ packing_flags &= ~512;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionFlush confirmed(boolean value) {
+ return setConfirmed(value);
+ }
+
+ public final boolean hasCompleted() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final SessionFlush clearCompleted() {
+ packing_flags &= ~1024;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getCompleted() {
+ return hasCompleted();
+ }
+
+ public final SessionFlush setCompleted(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1024;
+ }
+ else
+ {
+ packing_flags &= ~1024;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionFlush completed(boolean value) {
+ return setCompleted(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("expected", getExpected());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("confirmed", getConfirmed());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("completed", getCompleted());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionGap.java b/java/common/src/main/java/org/apache/qpid/transport/SessionGap.java
new file mode 100644
index 0000000000..62cf753df6
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionGap.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionGap extends Method {
+
+ public static final int TYPE = 525;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet commands;
+
+
+ public SessionGap() {}
+
+
+ public SessionGap(RangeSet commands, Option ... _options) {
+ if(commands != null) {
+ setCommands(commands);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionGap(context, this);
+ }
+
+
+ public final boolean hasCommands() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionGap clearCommands() {
+ packing_flags &= ~256;
+ this.commands = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getCommands() {
+ return commands;
+ }
+
+ public final SessionGap setCommands(RangeSet value) {
+ this.commands = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionGap commands(RangeSet value) {
+ return setCommands(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.commands);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commands = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commands", getCommands());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionHeader.java b/java/common/src/main/java/org/apache/qpid/transport/SessionHeader.java
new file mode 100644
index 0000000000..9287d594b1
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionHeader.java
@@ -0,0 +1,145 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class SessionHeader extends Struct {
+
+ public static final int TYPE = -1;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 1;
+ }
+
+ public final int getPackWidth() {
+ return 1;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private byte packing_flags = 0;
+
+
+ public SessionHeader() {}
+
+
+ public SessionHeader(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: packing_flags |= 1; break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+
+
+
+ public final boolean hasSync() {
+ return (packing_flags & 1) != 0;
+ }
+
+ public final SessionHeader clearSync() {
+ packing_flags &= ~1;
+
+ setDirty(true);
+ return this;
+ }
+
+ public final boolean getSync() {
+ return hasSync();
+ }
+
+ public final SessionHeader setSync(boolean value) {
+
+ if (value)
+ {
+ packing_flags |= 1;
+ }
+ else
+ {
+ packing_flags &= ~1;
+ }
+
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionHeader sync(boolean value) {
+ return setSync(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint8(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (byte) dec.readUint8();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 1) != 0)
+ {
+ result.put("sync", getSync());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionInvoker.java b/java/common/src/main/java/org/apache/qpid/transport/SessionInvoker.java
new file mode 100644
index 0000000000..2d5c54d96c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionInvoker.java
@@ -0,0 +1,236 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.Map;
+
+public abstract class SessionInvoker {
+
+ final void sessionAttach(byte[] name, Option ... _options) {
+ invoke(new SessionAttach(name, _options));
+ }
+
+ final void sessionAttached(byte[] name, Option ... _options) {
+ invoke(new SessionAttached(name, _options));
+ }
+
+ final void sessionDetach(byte[] name, Option ... _options) {
+ invoke(new SessionDetach(name, _options));
+ }
+
+ final void sessionDetached(byte[] name, SessionDetachCode code, Option ... _options) {
+ invoke(new SessionDetached(name, code, _options));
+ }
+
+ final void sessionRequestTimeout(long timeout, Option ... _options) {
+ invoke(new SessionRequestTimeout(timeout, _options));
+ }
+
+ final void sessionTimeout(long timeout, Option ... _options) {
+ invoke(new SessionTimeout(timeout, _options));
+ }
+
+ final void sessionCommandPoint(int commandId, long commandOffset, Option ... _options) {
+ invoke(new SessionCommandPoint(commandId, commandOffset, _options));
+ }
+
+ final void sessionExpected(RangeSet commands, java.util.List<Object> fragments, Option ... _options) {
+ invoke(new SessionExpected(commands, fragments, _options));
+ }
+
+ final void sessionConfirmed(RangeSet commands, java.util.List<Object> fragments, Option ... _options) {
+ invoke(new SessionConfirmed(commands, fragments, _options));
+ }
+
+ final void sessionCompleted(RangeSet commands, Option ... _options) {
+ invoke(new SessionCompleted(commands, _options));
+ }
+
+ final void sessionKnownCompleted(RangeSet commands, Option ... _options) {
+ invoke(new SessionKnownCompleted(commands, _options));
+ }
+
+ final void sessionFlush(Option ... _options) {
+ invoke(new SessionFlush(_options));
+ }
+
+ final void sessionGap(RangeSet commands, Option ... _options) {
+ invoke(new SessionGap(commands, _options));
+ }
+
+ public final void executionSync(Option ... _options) {
+ invoke(new ExecutionSync(_options));
+ }
+
+ public final void executionResult(int commandId, Struct value, Option ... _options) {
+ invoke(new ExecutionResult(commandId, value, _options));
+ }
+
+ public final void executionException(ExecutionErrorCode errorCode, int commandId, short classCode, short commandCode, short fieldIndex, String description, Map<String,Object> errorInfo, Option ... _options) {
+ invoke(new ExecutionException(errorCode, commandId, classCode, commandCode, fieldIndex, description, errorInfo, _options));
+ }
+
+ public final void messageTransfer(String destination, MessageAcceptMode acceptMode, MessageAcquireMode acquireMode, Header header, java.nio.ByteBuffer body, Option ... _options) {
+ invoke(new MessageTransfer(destination, acceptMode, acquireMode, header, body, _options));
+ }
+
+ public final void messageAccept(RangeSet transfers, Option ... _options) {
+ invoke(new MessageAccept(transfers, _options));
+ }
+
+ public final void messageReject(RangeSet transfers, MessageRejectCode code, String text, Option ... _options) {
+ invoke(new MessageReject(transfers, code, text, _options));
+ }
+
+ public final void messageRelease(RangeSet transfers, Option ... _options) {
+ invoke(new MessageRelease(transfers, _options));
+ }
+
+ public final Future<Acquired> messageAcquire(RangeSet transfers, Option ... _options) {
+ return invoke(new MessageAcquire(transfers, _options), Acquired.class);
+ }
+
+ public final Future<MessageResumeResult> messageResume(String destination, String resumeId, Option ... _options) {
+ return invoke(new MessageResume(destination, resumeId, _options), MessageResumeResult.class);
+ }
+
+ public final void messageSubscribe(String queue, String destination, MessageAcceptMode acceptMode, MessageAcquireMode acquireMode, String resumeId, long resumeTtl, Map<String,Object> arguments, Option ... _options) {
+ invoke(new MessageSubscribe(queue, destination, acceptMode, acquireMode, resumeId, resumeTtl, arguments, _options));
+ }
+
+ public final void messageCancel(String destination, Option ... _options) {
+ invoke(new MessageCancel(destination, _options));
+ }
+
+ public final void messageSetFlowMode(String destination, MessageFlowMode flowMode, Option ... _options) {
+ invoke(new MessageSetFlowMode(destination, flowMode, _options));
+ }
+
+ public final void messageFlow(String destination, MessageCreditUnit unit, long value, Option ... _options) {
+ invoke(new MessageFlow(destination, unit, value, _options));
+ }
+
+ public final void messageFlush(String destination, Option ... _options) {
+ invoke(new MessageFlush(destination, _options));
+ }
+
+ public final void messageStop(String destination, Option ... _options) {
+ invoke(new MessageStop(destination, _options));
+ }
+
+ public final void txSelect(Option ... _options) {
+ invoke(new TxSelect(_options));
+ }
+
+ public final void txCommit(Option ... _options) {
+ invoke(new TxCommit(_options));
+ }
+
+ public final void txRollback(Option ... _options) {
+ invoke(new TxRollback(_options));
+ }
+
+ public final void dtxSelect(Option ... _options) {
+ invoke(new DtxSelect(_options));
+ }
+
+ public final Future<XaResult> dtxStart(Xid xid, Option ... _options) {
+ return invoke(new DtxStart(xid, _options), XaResult.class);
+ }
+
+ public final Future<XaResult> dtxEnd(Xid xid, Option ... _options) {
+ return invoke(new DtxEnd(xid, _options), XaResult.class);
+ }
+
+ public final Future<XaResult> dtxCommit(Xid xid, Option ... _options) {
+ return invoke(new DtxCommit(xid, _options), XaResult.class);
+ }
+
+ public final void dtxForget(Xid xid, Option ... _options) {
+ invoke(new DtxForget(xid, _options));
+ }
+
+ public final Future<GetTimeoutResult> dtxGetTimeout(Xid xid, Option ... _options) {
+ return invoke(new DtxGetTimeout(xid, _options), GetTimeoutResult.class);
+ }
+
+ public final Future<XaResult> dtxPrepare(Xid xid, Option ... _options) {
+ return invoke(new DtxPrepare(xid, _options), XaResult.class);
+ }
+
+ public final Future<RecoverResult> dtxRecover(Option ... _options) {
+ return invoke(new DtxRecover(_options), RecoverResult.class);
+ }
+
+ public final Future<XaResult> dtxRollback(Xid xid, Option ... _options) {
+ return invoke(new DtxRollback(xid, _options), XaResult.class);
+ }
+
+ public final void dtxSetTimeout(Xid xid, long timeout, Option ... _options) {
+ invoke(new DtxSetTimeout(xid, timeout, _options));
+ }
+
+ public final void exchangeDeclare(String exchange, String type, String alternateExchange, Map<String,Object> arguments, Option ... _options) {
+ invoke(new ExchangeDeclare(exchange, type, alternateExchange, arguments, _options));
+ }
+
+ public final void exchangeDelete(String exchange, Option ... _options) {
+ invoke(new ExchangeDelete(exchange, _options));
+ }
+
+ public final Future<ExchangeQueryResult> exchangeQuery(String name, Option ... _options) {
+ return invoke(new ExchangeQuery(name, _options), ExchangeQueryResult.class);
+ }
+
+ public final void exchangeBind(String queue, String exchange, String bindingKey, Map<String,Object> arguments, Option ... _options) {
+ invoke(new ExchangeBind(queue, exchange, bindingKey, arguments, _options));
+ }
+
+ public final void exchangeUnbind(String queue, String exchange, String bindingKey, Option ... _options) {
+ invoke(new ExchangeUnbind(queue, exchange, bindingKey, _options));
+ }
+
+ public final Future<ExchangeBoundResult> exchangeBound(String exchange, String queue, String bindingKey, Map<String,Object> arguments, Option ... _options) {
+ return invoke(new ExchangeBound(exchange, queue, bindingKey, arguments, _options), ExchangeBoundResult.class);
+ }
+
+ public final void queueDeclare(String queue, String alternateExchange, Map<String,Object> arguments, Option ... _options) {
+ invoke(new QueueDeclare(queue, alternateExchange, arguments, _options));
+ }
+
+ public final void queueDelete(String queue, Option ... _options) {
+ invoke(new QueueDelete(queue, _options));
+ }
+
+ public final void queuePurge(String queue, Option ... _options) {
+ invoke(new QueuePurge(queue, _options));
+ }
+
+ public final Future<QueueQueryResult> queueQuery(String queue, Option ... _options) {
+ return invoke(new QueueQuery(queue, _options), QueueQueryResult.class);
+ }
+
+ protected abstract void invoke(Method method);
+
+ protected abstract <T> Future<T> invoke(Method method, Class<T> resultClass);
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionKnownCompleted.java b/java/common/src/main/java/org/apache/qpid/transport/SessionKnownCompleted.java
new file mode 100644
index 0000000000..4f78724ee0
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionKnownCompleted.java
@@ -0,0 +1,154 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionKnownCompleted extends Method {
+
+ public static final int TYPE = 523;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private RangeSet commands;
+
+
+ public SessionKnownCompleted() {}
+
+
+ public SessionKnownCompleted(RangeSet commands, Option ... _options) {
+ if(commands != null) {
+ setCommands(commands);
+ }
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionKnownCompleted(context, this);
+ }
+
+
+ public final boolean hasCommands() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionKnownCompleted clearCommands() {
+ packing_flags &= ~256;
+ this.commands = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final RangeSet getCommands() {
+ return commands;
+ }
+
+ public final SessionKnownCompleted setCommands(RangeSet value) {
+ this.commands = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionKnownCompleted commands(RangeSet value) {
+ return setCommands(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeSequenceSet(this.commands);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.commands = dec.readSequenceSet();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("commands", getCommands());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionRequestTimeout.java b/java/common/src/main/java/org/apache/qpid/transport/SessionRequestTimeout.java
new file mode 100644
index 0000000000..7608c8e75e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionRequestTimeout.java
@@ -0,0 +1,152 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionRequestTimeout extends Method {
+
+ public static final int TYPE = 517;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long timeout;
+
+
+ public SessionRequestTimeout() {}
+
+
+ public SessionRequestTimeout(long timeout, Option ... _options) {
+ setTimeout(timeout);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionRequestTimeout(context, this);
+ }
+
+
+ public final boolean hasTimeout() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionRequestTimeout clearTimeout() {
+ packing_flags &= ~256;
+ this.timeout = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTimeout() {
+ return timeout;
+ }
+
+ public final SessionRequestTimeout setTimeout(long value) {
+ this.timeout = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionRequestTimeout timeout(long value) {
+ return setTimeout(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint32(this.timeout);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.timeout = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("timeout", getTimeout());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/SessionTimeout.java b/java/common/src/main/java/org/apache/qpid/transport/SessionTimeout.java
new file mode 100644
index 0000000000..cc5054ab28
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/SessionTimeout.java
@@ -0,0 +1,152 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class SessionTimeout extends Method {
+
+ public static final int TYPE = 518;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L3;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long timeout;
+
+
+ public SessionTimeout() {}
+
+
+ public SessionTimeout(long timeout, Option ... _options) {
+ setTimeout(timeout);
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.sessionTimeout(context, this);
+ }
+
+
+ public final boolean hasTimeout() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final SessionTimeout clearTimeout() {
+ packing_flags &= ~256;
+ this.timeout = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getTimeout() {
+ return timeout;
+ }
+
+ public final SessionTimeout setTimeout(long value) {
+ this.timeout = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final SessionTimeout timeout(long value) {
+ return setTimeout(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint32(this.timeout);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.timeout = dec.readUint32();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("timeout", getTimeout());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/StreamReturnCode.java b/java/common/src/main/java/org/apache/qpid/transport/StreamReturnCode.java
new file mode 100644
index 0000000000..7a4e8c083b
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/StreamReturnCode.java
@@ -0,0 +1,52 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum StreamReturnCode {
+
+ CONTENT_TOO_LARGE((int) 311),
+ NO_ROUTE((int) 312),
+ NO_CONSUMERS((int) 313);
+
+ private final int value;
+
+ StreamReturnCode(int value)
+ {
+ this.value = value;
+ }
+
+ public int getValue()
+ {
+ return value;
+ }
+
+ public static StreamReturnCode get(int value)
+ {
+ switch (value)
+ {
+ case (int) 311: return CONTENT_TOO_LARGE;
+ case (int) 312: return NO_ROUTE;
+ case (int) 313: return NO_CONSUMERS;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/StructFactory.java b/java/common/src/main/java/org/apache/qpid/transport/StructFactory.java
new file mode 100644
index 0000000000..4dcd02da9f
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/StructFactory.java
@@ -0,0 +1,200 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+class StructFactory {
+
+ public static Struct create(int type)
+ {
+ switch (type)
+ {
+ case SessionHeader.TYPE:
+ return new SessionHeader();
+ case SessionCommandFragment.TYPE:
+ return new SessionCommandFragment();
+ case DeliveryProperties.TYPE:
+ return new DeliveryProperties();
+ case FragmentProperties.TYPE:
+ return new FragmentProperties();
+ case ReplyTo.TYPE:
+ return new ReplyTo();
+ case MessageProperties.TYPE:
+ return new MessageProperties();
+ case XaResult.TYPE:
+ return new XaResult();
+ case Xid.TYPE:
+ return new Xid();
+ case Acquired.TYPE:
+ return new Acquired();
+ case MessageResumeResult.TYPE:
+ return new MessageResumeResult();
+ case GetTimeoutResult.TYPE:
+ return new GetTimeoutResult();
+ case RecoverResult.TYPE:
+ return new RecoverResult();
+ case ExchangeQueryResult.TYPE:
+ return new ExchangeQueryResult();
+ case ExchangeBoundResult.TYPE:
+ return new ExchangeBoundResult();
+ case QueueQueryResult.TYPE:
+ return new QueueQueryResult();
+ default:
+ throw new IllegalArgumentException("type: " + type);
+ }
+ }
+
+ public static Struct createInstruction(int type)
+ {
+ switch (type)
+ {
+ case ConnectionStart.TYPE:
+ return new ConnectionStart();
+ case ConnectionStartOk.TYPE:
+ return new ConnectionStartOk();
+ case ConnectionSecure.TYPE:
+ return new ConnectionSecure();
+ case ConnectionSecureOk.TYPE:
+ return new ConnectionSecureOk();
+ case ConnectionTune.TYPE:
+ return new ConnectionTune();
+ case ConnectionTuneOk.TYPE:
+ return new ConnectionTuneOk();
+ case ConnectionOpen.TYPE:
+ return new ConnectionOpen();
+ case ConnectionOpenOk.TYPE:
+ return new ConnectionOpenOk();
+ case ConnectionRedirect.TYPE:
+ return new ConnectionRedirect();
+ case ConnectionHeartbeat.TYPE:
+ return new ConnectionHeartbeat();
+ case ConnectionClose.TYPE:
+ return new ConnectionClose();
+ case ConnectionCloseOk.TYPE:
+ return new ConnectionCloseOk();
+ case SessionAttach.TYPE:
+ return new SessionAttach();
+ case SessionAttached.TYPE:
+ return new SessionAttached();
+ case SessionDetach.TYPE:
+ return new SessionDetach();
+ case SessionDetached.TYPE:
+ return new SessionDetached();
+ case SessionRequestTimeout.TYPE:
+ return new SessionRequestTimeout();
+ case SessionTimeout.TYPE:
+ return new SessionTimeout();
+ case SessionCommandPoint.TYPE:
+ return new SessionCommandPoint();
+ case SessionExpected.TYPE:
+ return new SessionExpected();
+ case SessionConfirmed.TYPE:
+ return new SessionConfirmed();
+ case SessionCompleted.TYPE:
+ return new SessionCompleted();
+ case SessionKnownCompleted.TYPE:
+ return new SessionKnownCompleted();
+ case SessionFlush.TYPE:
+ return new SessionFlush();
+ case SessionGap.TYPE:
+ return new SessionGap();
+ case ExecutionSync.TYPE:
+ return new ExecutionSync();
+ case ExecutionResult.TYPE:
+ return new ExecutionResult();
+ case ExecutionException.TYPE:
+ return new ExecutionException();
+ case MessageTransfer.TYPE:
+ return new MessageTransfer();
+ case MessageAccept.TYPE:
+ return new MessageAccept();
+ case MessageReject.TYPE:
+ return new MessageReject();
+ case MessageRelease.TYPE:
+ return new MessageRelease();
+ case MessageAcquire.TYPE:
+ return new MessageAcquire();
+ case MessageResume.TYPE:
+ return new MessageResume();
+ case MessageSubscribe.TYPE:
+ return new MessageSubscribe();
+ case MessageCancel.TYPE:
+ return new MessageCancel();
+ case MessageSetFlowMode.TYPE:
+ return new MessageSetFlowMode();
+ case MessageFlow.TYPE:
+ return new MessageFlow();
+ case MessageFlush.TYPE:
+ return new MessageFlush();
+ case MessageStop.TYPE:
+ return new MessageStop();
+ case TxSelect.TYPE:
+ return new TxSelect();
+ case TxCommit.TYPE:
+ return new TxCommit();
+ case TxRollback.TYPE:
+ return new TxRollback();
+ case DtxSelect.TYPE:
+ return new DtxSelect();
+ case DtxStart.TYPE:
+ return new DtxStart();
+ case DtxEnd.TYPE:
+ return new DtxEnd();
+ case DtxCommit.TYPE:
+ return new DtxCommit();
+ case DtxForget.TYPE:
+ return new DtxForget();
+ case DtxGetTimeout.TYPE:
+ return new DtxGetTimeout();
+ case DtxPrepare.TYPE:
+ return new DtxPrepare();
+ case DtxRecover.TYPE:
+ return new DtxRecover();
+ case DtxRollback.TYPE:
+ return new DtxRollback();
+ case DtxSetTimeout.TYPE:
+ return new DtxSetTimeout();
+ case ExchangeDeclare.TYPE:
+ return new ExchangeDeclare();
+ case ExchangeDelete.TYPE:
+ return new ExchangeDelete();
+ case ExchangeQuery.TYPE:
+ return new ExchangeQuery();
+ case ExchangeBind.TYPE:
+ return new ExchangeBind();
+ case ExchangeUnbind.TYPE:
+ return new ExchangeUnbind();
+ case ExchangeBound.TYPE:
+ return new ExchangeBound();
+ case QueueDeclare.TYPE:
+ return new QueueDeclare();
+ case QueueDelete.TYPE:
+ return new QueueDelete();
+ case QueuePurge.TYPE:
+ return new QueuePurge();
+ case QueueQuery.TYPE:
+ return new QueueQuery();
+ default:
+ throw new IllegalArgumentException("type: " + type);
+ }
+ }
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Track.java b/java/common/src/main/java/org/apache/qpid/transport/Track.java
new file mode 100644
index 0000000000..861a992a83
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Track.java
@@ -0,0 +1,50 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+public enum Track {
+
+ CONTROL((short) 0),
+ COMMAND((short) 1);
+
+ private final short value;
+
+ Track(short value)
+ {
+ this.value = value;
+ }
+
+ public short getValue()
+ {
+ return value;
+ }
+
+ public static Track get(short value)
+ {
+ switch (value)
+ {
+ case (short) 0: return CONTROL;
+ case (short) 1: return COMMAND;
+ default: throw new IllegalArgumentException("no such value: " + value);
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/TxCommit.java b/java/common/src/main/java/org/apache/qpid/transport/TxCommit.java
new file mode 100644
index 0000000000..837aa1e1d4
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/TxCommit.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class TxCommit extends Method {
+
+ public static final int TYPE = 1282;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public TxCommit(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.txCommit(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/TxRollback.java b/java/common/src/main/java/org/apache/qpid/transport/TxRollback.java
new file mode 100644
index 0000000000..f8b54f2e5c
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/TxRollback.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class TxRollback extends Method {
+
+ public static final int TYPE = 1283;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public TxRollback(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.txRollback(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/TxSelect.java b/java/common/src/main/java/org/apache/qpid/transport/TxSelect.java
new file mode 100644
index 0000000000..6fd886e94e
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/TxSelect.java
@@ -0,0 +1,111 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+import org.apache.qpid.transport.network.Frame;
+
+
+public final class TxSelect extends Method {
+
+ public static final int TYPE = 1281;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 0;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return Frame.L4;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+
+
+
+
+ public TxSelect(Option ... _options) {
+
+ for (int i=0; i < _options.length; i++) {
+ switch (_options[i]) {
+ case SYNC: this.setSync(true); break;
+ case BATCH: this.setBatch(true); break;
+ case UNRELIABLE: this.setUnreliable(true); break;
+ case NONE: break;
+ default: throw new IllegalArgumentException("invalid option: " + _options[i]);
+ }
+ }
+
+ }
+
+ public <C> void dispatch(C context, MethodDelegate<C> delegate) {
+ delegate.txSelect(context, this);
+ }
+
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Type.java b/java/common/src/main/java/org/apache/qpid/transport/Type.java
new file mode 100644
index 0000000000..05904f2995
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Type.java
@@ -0,0 +1,148 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+
+
+public enum Type
+{
+
+ BIN8((byte) 0x00, 1, true),
+ INT8((byte) 0x01, 1, true),
+ UINT8((byte) 0x02, 1, true),
+ CHAR((byte) 0x04, 1, true),
+ BOOLEAN((byte) 0x08, 1, true),
+ BIN16((byte) 0x10, 2, true),
+ INT16((byte) 0x11, 2, true),
+ UINT16((byte) 0x12, 2, true),
+ BIN32((byte) 0x20, 4, true),
+ INT32((byte) 0x21, 4, true),
+ UINT32((byte) 0x22, 4, true),
+ FLOAT((byte) 0x23, 4, true),
+ CHAR_UTF32((byte) 0x27, 4, true),
+ BIN64((byte) 0x30, 8, true),
+ INT64((byte) 0x31, 8, true),
+ UINT64((byte) 0x32, 8, true),
+ DOUBLE((byte) 0x33, 8, true),
+ DATETIME((byte) 0x38, 8, true),
+ BIN128((byte) 0x40, 16, true),
+ UUID((byte) 0x48, 16, true),
+ BIN256((byte) 0x50, 32, true),
+ BIN512((byte) 0x60, 64, true),
+ BIN1024((byte) 0x70, 128, true),
+ VBIN8((byte) 0x80, 1, false),
+ STR8_LATIN((byte) 0x84, 1, false),
+ STR8((byte) 0x85, 1, false),
+ STR8_UTF16((byte) 0x86, 1, false),
+ VBIN16((byte) 0x90, 2, false),
+ STR16_LATIN((byte) 0x94, 2, false),
+ STR16((byte) 0x95, 2, false),
+ STR16_UTF16((byte) 0x96, 2, false),
+ VBIN32((byte) 0xa0, 4, false),
+ MAP((byte) 0xa8, 4, false),
+ LIST((byte) 0xa9, 4, false),
+ ARRAY((byte) 0xaa, 4, false),
+ STRUCT32((byte) 0xab, 4, false),
+ BIN40((byte) 0xc0, 5, true),
+ DEC32((byte) 0xc8, 5, true),
+ BIN72((byte) 0xd0, 9, true),
+ DEC64((byte) 0xd8, 9, true),
+ VOID((byte) 0xf0, 0, true),
+ BIT((byte) 0xf1, 0, true);
+
+ private final byte code;
+ private final int width;
+ private final boolean fixed;
+
+ Type(byte code, int width, boolean fixed)
+ {
+ this.code = code;
+ this.width = width;
+ this.fixed = fixed;
+ }
+
+ public byte getCode()
+ {
+ return code;
+ }
+
+ public int getWidth()
+ {
+ return width;
+ }
+
+ public boolean isFixed()
+ {
+ return fixed;
+ }
+
+ public static Type get(byte code)
+ {
+ switch (code)
+ {
+ case (byte) 0x00: return BIN8;
+ case (byte) 0x01: return INT8;
+ case (byte) 0x02: return UINT8;
+ case (byte) 0x04: return CHAR;
+ case (byte) 0x08: return BOOLEAN;
+ case (byte) 0x10: return BIN16;
+ case (byte) 0x11: return INT16;
+ case (byte) 0x12: return UINT16;
+ case (byte) 0x20: return BIN32;
+ case (byte) 0x21: return INT32;
+ case (byte) 0x22: return UINT32;
+ case (byte) 0x23: return FLOAT;
+ case (byte) 0x27: return CHAR_UTF32;
+ case (byte) 0x30: return BIN64;
+ case (byte) 0x31: return INT64;
+ case (byte) 0x32: return UINT64;
+ case (byte) 0x33: return DOUBLE;
+ case (byte) 0x38: return DATETIME;
+ case (byte) 0x40: return BIN128;
+ case (byte) 0x48: return UUID;
+ case (byte) 0x50: return BIN256;
+ case (byte) 0x60: return BIN512;
+ case (byte) 0x70: return BIN1024;
+ case (byte) 0x80: return VBIN8;
+ case (byte) 0x84: return STR8_LATIN;
+ case (byte) 0x85: return STR8;
+ case (byte) 0x86: return STR8_UTF16;
+ case (byte) 0x90: return VBIN16;
+ case (byte) 0x94: return STR16_LATIN;
+ case (byte) 0x95: return STR16;
+ case (byte) 0x96: return STR16_UTF16;
+ case (byte) 0xa0: return VBIN32;
+ case (byte) 0xa8: return MAP;
+ case (byte) 0xa9: return LIST;
+ case (byte) 0xaa: return ARRAY;
+ case (byte) 0xab: return STRUCT32;
+ case (byte) 0xc0: return BIN40;
+ case (byte) 0xc8: return DEC32;
+ case (byte) 0xd0: return BIN72;
+ case (byte) 0xd8: return DEC64;
+ case (byte) 0xf0: return VOID;
+ case (byte) 0xf1: return BIT;
+
+ default: return null;
+ }
+ }
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/XaResult.java b/java/common/src/main/java/org/apache/qpid/transport/XaResult.java
new file mode 100644
index 0000000000..c9d502f7ea
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/XaResult.java
@@ -0,0 +1,141 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class XaResult extends Struct {
+
+ public static final int TYPE = 1537;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private DtxXaStatus status;
+
+
+ public XaResult() {}
+
+
+ public XaResult(DtxXaStatus status) {
+ if(status != null) {
+ setStatus(status);
+ }
+
+ }
+
+
+
+
+ public final boolean hasStatus() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final XaResult clearStatus() {
+ packing_flags &= ~256;
+ this.status = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final DtxXaStatus getStatus() {
+ return status;
+ }
+
+ public final XaResult setStatus(DtxXaStatus value) {
+ this.status = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final XaResult status(DtxXaStatus value) {
+ return setStatus(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint16(this.status.getValue());
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.status = DtxXaStatus.get(dec.readUint16());
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("status", getStatus());
+ }
+
+
+ return result;
+ }
+
+
+}
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Xid.java b/java/common/src/main/java/org/apache/qpid/transport/Xid.java
new file mode 100644
index 0000000000..4e142079af
--- /dev/null
+++ b/java/common/src/main/java/org/apache/qpid/transport/Xid.java
@@ -0,0 +1,223 @@
+package org.apache.qpid.transport;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import org.apache.qpid.transport.codec.Decoder;
+import org.apache.qpid.transport.codec.Encoder;
+
+
+
+public final class Xid extends Struct {
+
+ public static final int TYPE = 1540;
+
+ public final int getStructType() {
+ return TYPE;
+ }
+
+ public final int getSizeWidth() {
+ return 4;
+ }
+
+ public final int getPackWidth() {
+ return 2;
+ }
+
+ public final boolean hasPayload() {
+ return false;
+ }
+
+ public final byte getEncodedTrack() {
+ return -1;
+ }
+
+ public final boolean isConnectionControl()
+ {
+ return false;
+ }
+
+ private short packing_flags = 0;
+ private long format;
+ private byte[] globalId;
+ private byte[] branchId;
+
+
+ public Xid() {}
+
+
+ public Xid(long format, byte[] globalId, byte[] branchId) {
+ setFormat(format);
+ if(globalId != null) {
+ setGlobalId(globalId);
+ }
+ if(branchId != null) {
+ setBranchId(branchId);
+ }
+
+ }
+
+
+
+
+ public final boolean hasFormat() {
+ return (packing_flags & 256) != 0;
+ }
+
+ public final Xid clearFormat() {
+ packing_flags &= ~256;
+ this.format = 0;
+ setDirty(true);
+ return this;
+ }
+
+ public final long getFormat() {
+ return format;
+ }
+
+ public final Xid setFormat(long value) {
+ this.format = value;
+ packing_flags |= 256;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid format(long value) {
+ return setFormat(value);
+ }
+
+ public final boolean hasGlobalId() {
+ return (packing_flags & 512) != 0;
+ }
+
+ public final Xid clearGlobalId() {
+ packing_flags &= ~512;
+ this.globalId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getGlobalId() {
+ return globalId;
+ }
+
+ public final Xid setGlobalId(byte[] value) {
+ this.globalId = value;
+ packing_flags |= 512;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid globalId(byte[] value) {
+ return setGlobalId(value);
+ }
+
+ public final boolean hasBranchId() {
+ return (packing_flags & 1024) != 0;
+ }
+
+ public final Xid clearBranchId() {
+ packing_flags &= ~1024;
+ this.branchId = null;
+ setDirty(true);
+ return this;
+ }
+
+ public final byte[] getBranchId() {
+ return branchId;
+ }
+
+ public final Xid setBranchId(byte[] value) {
+ this.branchId = value;
+ packing_flags |= 1024;
+ setDirty(true);
+ return this;
+ }
+
+ public final Xid branchId(byte[] value) {
+ return setBranchId(value);
+ }
+
+
+
+
+ public void write(Encoder enc)
+ {
+ enc.writeUint16(packing_flags);
+ if ((packing_flags & 256) != 0)
+ {
+ enc.writeUint32(this.format);
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ enc.writeVbin8(this.globalId);
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ enc.writeVbin8(this.branchId);
+ }
+
+ }
+
+ public void read(Decoder dec)
+ {
+ packing_flags = (short) dec.readUint16();
+ if ((packing_flags & 256) != 0)
+ {
+ this.format = dec.readUint32();
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ this.globalId = dec.readVbin8();
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ this.branchId = dec.readVbin8();
+ }
+
+ }
+
+ public Map<String,Object> getFields()
+ {
+ Map<String,Object> result = new LinkedHashMap<String,Object>();
+
+ if ((packing_flags & 256) != 0)
+ {
+ result.put("format", getFormat());
+ }
+ if ((packing_flags & 512) != 0)
+ {
+ result.put("globalId", getGlobalId());
+ }
+ if ((packing_flags & 1024) != 0)
+ {
+ result.put("branchId", getBranchId());
+ }
+
+
+ return result;
+ }
+
+
+}