org.jboss.remoting
Class ServerInvokerCallbackHandler

java.lang.Object
  extended byorg.jboss.remoting.ServerInvokerCallbackHandler
All Implemented Interfaces:
InvokerCallbackHandler

public class ServerInvokerCallbackHandler
extends Object
implements InvokerCallbackHandler

Responsible for all callbacks in remoting at invoker level (on the server side).

Author:
Tom Elrod

Constructor Summary
ServerInvokerCallbackHandler(InvocationRequest invocation)
           
 
Method Summary
 void destroy()
          This method is required to be called upon removing a callback listener so can clean up resources used by the handler.
 List getCallbacks()
           
 String getId()
          Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to.
static String getId(InvocationRequest invocation)
          Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to.
 void handleCallback(InvocationRequest invocation)
          Will take the callback message and send back to client.
 String toString()
          Returns the id for this handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerInvokerCallbackHandler

public ServerInvokerCallbackHandler(InvocationRequest invocation)
                             throws Exception
Method Detail

getId

public static String getId(InvocationRequest invocation)
Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to. Currently, this is the session id associated with the invocation request.

Returns:

getId

public String getId()
Returns an id that can be used to identify this particular callback handler, which should be representative of the client invoker it will make callbacks to.

Returns:

getCallbacks

public List getCallbacks()

handleCallback

public void handleCallback(InvocationRequest invocation)
                    throws HandleCallbackException
Will take the callback message and send back to client. If client locator is null, will store them till client polls to get them.

Specified by:
handleCallback in interface InvokerCallbackHandler
Parameters:
invocation -
Throws:
Throwable
HandleCallbackException

toString

public String toString()
Returns the id for this handler

Returns:

destroy

public void destroy()
This method is required to be called upon removing a callback listener so can clean up resources used by the handler. In particular, should call disconnect on internal Client.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.