org.jboss.remoting
Interface ClientInterceptor

All Known Implementing Classes:
ClientInvokerAdapter (src)

public interface ClientInterceptor

Client is a convience method for invoking remote methods for a given subsystem


Method Summary
 void addListener(InvokerLocator (src)  locator, java.lang.String sessionId, InvokerCallbackHandler (src)  callbackHandler)
          If the client invoker has a client locator, call it to add the client's callback handler.
 void connect(InvokerLocator (src)  locator)
           
 void disconnect(InvokerLocator (src)  locator)
           
 java.util.List getCallbacks(InvokerLocator (src)  locator, java.lang.String sessionId)
           
 java.lang.Object invoke(InvocationRequest (src)  invocation)
          invoke the method remotely
 boolean isConnected(InvokerLocator (src)  locator)
           
 void removeListener(InvokerLocator (src)  locator, java.lang.String sessionId, InvokerCallbackHandler (src)  callbackHandler)
          Removes callback handler as a callback listener from the server (and client in the case that it was setup to receive async callbacks).
 

Method Detail

isConnected

public boolean isConnected(InvokerLocator (src)  locator)
                    throws java.lang.Exception
Throws:
java.lang.Exception

connect

public void connect(InvokerLocator (src)  locator)
             throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

public void disconnect(InvokerLocator (src)  locator)
                throws java.lang.Exception
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(InvocationRequest (src)  invocation)
                        throws java.lang.Throwable
invoke the method remotely

Returns:
Throws:
java.lang.Throwable

addListener

public void addListener(InvokerLocator (src)  locator,
                        java.lang.String sessionId,
                        InvokerCallbackHandler (src)  callbackHandler)
                 throws java.lang.Throwable
If the client invoker has a client locator, call it to add the client's callback handler. Then call the server to add a callback handler (regardless of client locator being null). This will allow for pull or push callbacks.

Parameters:
callbackHandler -
Throws:
java.lang.Throwable

removeListener

public void removeListener(InvokerLocator (src)  locator,
                           java.lang.String sessionId,
                           InvokerCallbackHandler (src)  callbackHandler)
                    throws java.lang.Throwable
Removes callback handler as a callback listener from the server (and client in the case that it was setup to receive async callbacks). See addListener().

Parameters:
callbackHandler -
Throws:
java.lang.Throwable

getCallbacks

public java.util.List getCallbacks(InvokerLocator (src)  locator,
                                   java.lang.String sessionId)
                            throws java.lang.Throwable
Throws:
java.lang.Throwable