JBoss Remoting 3.0.0.Beta2

org.jboss.remoting.transporter
Class TransporterRequestListener<T>

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

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

TransporterRequestListener

public TransporterRequestListener(T target)
Method Detail

handleRequest

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.

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

JBoss Remoting 3.0.0.Beta2

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