JBoss Remoting 3.0.0.Beta2

Class TransporterRequestListener<T>

  extended by org.jboss.remoting.AbstractRequestListener<TransporterInvocation,Object>
      extended by org.jboss.remoting.transporter.TransporterRequestListener<T>
All Implemented Interfaces:

public final class TransporterRequestListener<T>
extends AbstractRequestListener<TransporterInvocation,Object>

Transporter request listener. Used to implement the receiving end of a transporter invocation.

Constructor Summary
TransporterRequestListener(T target)
Method Summary
 void handleRequest(RequestContext<Object> context, TransporterInvocation request)
          Handle a request.
Methods inherited from class org.jboss.remoting.AbstractRequestListener
handleClientClose, handleClientOpen, handleServiceClose, handleServiceOpen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TransporterRequestListener(T target)
Method Detail


public void handleRequest(RequestContext<Object> context,
                          TransporterInvocation request)
                   throws RemoteExecutionException
Description copied from interface: RequestListener
Handle a request. If this method throws RemoteExecutionException, then that exception is passed back to the caller and the request is marked as complete. Otherwise, the request listener must send back either a reply (using the sendReply() method on the RequestContext) or an exception (using the sendException() method on the RequestContext). Failure to do so may cause the client to hang indefinitely.

context - the context on which a reply may be sent
request - the received request
RemoteExecutionException - if the execution failed in some way

JBoss Remoting 3.0.0.Beta2

Copyright © 2008 JBoss, a division of Red Hat, Inc.