org.jboss.jms.wireformat
Class CallbackRequestSupport

java.lang.Object
  extended by org.jboss.jms.wireformat.PacketSupport
      extended by org.jboss.jms.wireformat.RequestSupport
          extended by org.jboss.jms.wireformat.CallbackRequestSupport
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
ConnectionFactoryAddCallbackRequest, ConnectionFactoryCreateConnectionDelegateRequest, ConnectionFactoryRemoveCallbackRequest

public abstract class CallbackRequestSupport
extends RequestSupport

Support of establishing server2client callback mechanism. (JMSServerInvocationHandler looks up for the callbackHandler based on the remoteSessionId. That routine used to be dependent on ConnectionFactoryCreateConnectionDelegateRequest but we also needed the same thing to establish callback on ConnectionFactory updates, so we created another level for RequestSupport having the callback information)

Version:
$Revision: 3019 $ $Id: CallbackRequestSupport.java 3019 2007-08-21 04:19:48Z clebert.suconic@jboss.com $
Author:
Clebert Suconic

Field Summary
 
Fields inherited from class org.jboss.jms.wireformat.RequestSupport
objectId, 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
protected CallbackRequestSupport()
           
protected CallbackRequestSupport(java.lang.String clientVMId, java.lang.String remotingSessionId, java.lang.String objectId, int methodId, byte version)
           
 
Method Summary
 ServerInvokerCallbackHandler getCallbackHandler()
           
 java.lang.String getClientVMID()
           
 java.lang.String getRemotingSessionID()
           
 void read(java.io.DataInputStream is)
           
 void setCallbackHandler(ServerInvokerCallbackHandler callbackHandler)
           
 void setRemotingSessionId(java.lang.String remotingSessionId)
           
 void write(java.io.DataOutputStream os)
           
 
Methods inherited from class org.jboss.jms.wireformat.RequestSupport
getMethodId, getObjectId, getPayload, getVersion, serverInvoke
 
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
 

Constructor Detail

CallbackRequestSupport

protected CallbackRequestSupport()

CallbackRequestSupport

protected CallbackRequestSupport(java.lang.String clientVMId,
                                 java.lang.String remotingSessionId,
                                 java.lang.String objectId,
                                 int methodId,
                                 byte version)
Method Detail

getRemotingSessionID

public java.lang.String getRemotingSessionID()

getClientVMID

public java.lang.String getClientVMID()

setRemotingSessionId

public void setRemotingSessionId(java.lang.String remotingSessionId)

getCallbackHandler

public ServerInvokerCallbackHandler getCallbackHandler()

setCallbackHandler

public void setCallbackHandler(ServerInvokerCallbackHandler callbackHandler)

write

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

read

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


Copyright © 2006 JBoss Inc. All Rights Reserved.