org.jboss.jms.wireformat
Class RequestSupport

java.lang.Object
  extended byorg.jboss.jms.wireformat.PacketSupport
      extended byorg.jboss.jms.wireformat.RequestSupport
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
BrowserHasNextMessageRequest, BrowserNextMessageBlockRequest, BrowserNextMessageRequest, BrowserResetRequest, CloseRequest, ClosingRequest, ConnectionCreateSessionDelegateRequest, ConnectionFactoryCreateConnectionDelegateRequest, ConnectionFactoryGetClientAOPStackRequest, ConnectionGetClientIDRequest, ConnectionGetIDBlockRequest, ConnectionGetPreparedTransactionsRequest, ConnectionSendTransactionRequest, ConnectionSetClientIDRequest, ConnectionStartRequest, ConnectionStopRequest, ConsumerChangeRateRequest, SessionAcknowledgeDeliveriesRequest, SessionAcknowledgeDeliveryRequest, SessionAddTemporaryDestinationRequest, SessionCancelDeliveriesRequest, SessionCancelDeliveryRequest, SessionCreateBrowserDelegateRequest, SessionCreateConsumerDelegateRequest, SessionCreateQueueRequest, SessionCreateTopicRequest, SessionDeleteTemporaryDestinationRequest, SessionRecoverDeliveriesRequest, SessionSendRequest, SessionUnsubscribeRequest

public abstract class RequestSupport
extends PacketSupport

Version:
$Revision: 2304 $ $Id: RequestSupport.java 2304 2007-02-13 23:43:15Z clebert.suconic@jboss.com $
Author:
Tim Fox

Field Summary
protected  int objectId
           
protected  byte version
           
 
Fields inherited from class org.jboss.jms.wireformat.PacketSupport
CLIENT_DELIVERY, CONNECTIONFACTORY_UPDATE, methodId, NULL_RESPONSE, ONE_WAY_METADATA, POLLEDCALLBACKS_DELIVERY, REQ_BROWSER_HASNEXTMESSAGE, REQ_BROWSER_NEXTMESSAGE, REQ_BROWSER_NEXTMESSAGEBLOCK, REQ_BROWSER_RESET, REQ_CLOSE, REQ_CLOSING, REQ_CONNECTION_CREATESESSIONDELEGATE, REQ_CONNECTION_GETCLIENTID, REQ_CONNECTION_GETPREPAREDTRANSACTIONS, REQ_CONNECTION_SENDTRANSACTION, REQ_CONNECTION_SETCLIENTID, REQ_CONNECTION_START, REQ_CONNECTION_STOP, REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE, REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK, REQ_CONNECTIONFACTORY_GETIDBLOCK, REQ_CONSUMER_CHANGERATE, REQ_SESSION_ACKNOWLEDGEDELIVERIES, REQ_SESSION_ACKNOWLEDGEDELIVERY, REQ_SESSION_ADDTEMPORARYDESTINATION, REQ_SESSION_CANCELDELIVERIES, REQ_SESSION_CANCELDELIVERY, REQ_SESSION_CREATEBROWSERDELEGATE, REQ_SESSION_CREATECONSUMERDELEGATE, REQ_SESSION_CREATEQUEUE, REQ_SESSION_CREATETOPIC, REQ_SESSION_DELETETEMPORARYDESTINATION, REQ_SESSION_RECOVERDELIVERIES, REQ_SESSION_SEND, REQ_SESSION_UNSUBSCRIBE, RESP_BROWSER_HASNEXTMESSAGE, RESP_BROWSER_NEXTMESSAGE, RESP_BROWSER_NEXTMESSAGEBLOCK, RESP_CLOSING, RESP_CONNECTION_CREATESESSIONDELEGATE, RESP_CONNECTION_GETCLIENTID, RESP_CONNECTION_GETPREPAREDTRANSACTIONS, RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE, RESP_CONNECTIONFACTORY_GETCLIENTAOPSTACK, RESP_CONNECTIONFACTORY_GETIDBLOCK, RESP_SESSION_CREATEBROWSERDELEGATE, RESP_SESSION_CREATECONSUMERDELEGATE, RESP_SESSION_CREATEQUEUE, RESP_SESSION_CREATETOPIC, SERIALIZED
 
Constructor Summary
RequestSupport()
           
RequestSupport(int objectId, int methodId, byte version)
           
 
Method Summary
 int getMethodId()
           
 int getObjectId()
           
 java.lang.Object getPayload()
           
 byte getVersion()
           
 void read(java.io.DataInputStream is)
           
abstract  ResponseSupport serverInvoke()
           
 void write(java.io.DataOutputStream os)
           
 
Methods inherited from class org.jboss.jms.wireformat.PacketSupport
createPacket, readNullableString, writeNullableString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectId

protected int objectId

version

protected byte version
Constructor Detail

RequestSupport

public RequestSupport()

RequestSupport

public RequestSupport(int objectId,
                      int methodId,
                      byte version)
Method Detail

getPayload

public java.lang.Object getPayload()
Overrides:
getPayload in class PacketSupport

getMethodId

public int getMethodId()

getObjectId

public int getObjectId()

getVersion

public byte getVersion()

serverInvoke

public abstract ResponseSupport serverInvoke()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(java.io.DataOutputStream os)
           throws java.lang.Exception
Specified by:
write in interface Streamable
Overrides:
write in class PacketSupport
Throws:
java.lang.Exception

read

public void read(java.io.DataInputStream is)
          throws java.lang.Exception
Specified by:
read in interface Streamable
Specified by:
read in class PacketSupport
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.