org.jboss.jms.wireformat
Class RequestSupport

java.lang.Object
  extended by org.jboss.jms.wireformat.PacketSupport
      extended by org.jboss.jms.wireformat.RequestSupport
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
BrowserHasNextMessageRequest, BrowserNextMessageBlockRequest, BrowserNextMessageRequest, BrowserResetRequest, CallbackRequestSupport, CloseRequest, ClosingRequest, ConnectionCreateSessionDelegateRequest, ConnectionFactoryGetClientAOPStackRequest, ConnectionFactoryGetTopologyRequest, 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: 2857 $ $Id: RequestSupport.java 2857 2007-07-08 13:21:39Z timfox $
Author:
Tim Fox

Field Summary
protected  java.lang.String 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_ADDCALLBACK, REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE, REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK, REQ_CONNECTIONFACTORY_GETIDBLOCK, REQ_CONNECTIONFACTORY_GETTOPOLOGY, REQ_CONNECTIONFACTORY_REMOVECALLBACK, 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_CONNECTIONFACTORY_GETTOPOLOGY, RESP_SESSION_ACKNOWLEDGEDELIVERY, RESP_SESSION_CREATEBROWSERDELEGATE, RESP_SESSION_CREATECONSUMERDELEGATE, RESP_SESSION_CREATEQUEUE, RESP_SESSION_CREATETOPIC, SERIALIZED
 
Constructor Summary
RequestSupport()
           
RequestSupport(java.lang.String objectId, int methodId, byte version)
           
 
Method Summary
 int getMethodId()
           
 java.lang.String 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 java.lang.String objectId

version

protected byte version
Constructor Detail

RequestSupport

public RequestSupport()

RequestSupport

public RequestSupport(java.lang.String objectId,
                      int methodId,
                      byte version)
Method Detail

getPayload

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

getMethodId

public int getMethodId()

getObjectId

public java.lang.String 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.