jremote jbase5.2.1

com.jbase.jremote.io.inflow
Interface RequestHandler

All Known Implementing Classes:
InboundRequestHandler

public interface RequestHandler

Handle incoming requests received by the RequestServiceListener.

Author:
aphethean

Method Summary
 RequestListenerService getListenerService()
          Return the listener service.
 void handleClose(ClientHandle handle)
          Called when a client close event occurs.
 byte[] handleRequest(ClientHandle handle, byte[] request)
          Called when a client has sent a request.
 void handleResponse(ClientHandle handle, byte[] response)
          Send a response to the supplied client (sessionId).
 void handleTimeout(ClientHandle handle)
          Called when a select times out waiting for client keys.
 

Method Detail

handleClose

void handleClose(ClientHandle handle)

Called when a client close event occurs.


handleTimeout

void handleTimeout(ClientHandle handle)

Called when a select times out waiting for client keys.


handleRequest

byte[] handleRequest(ClientHandle handle,
                     byte[] request)
                     throws RequestHandlerException

Called when a client has sent a request.

Throws:
RequestHandlerException

handleResponse

void handleResponse(ClientHandle handle,
                    byte[] response)
                    throws RequestHandlerException

Send a response to the supplied client (sessionId).

Throws:
RequestHandlerException

getListenerService

RequestListenerService getListenerService()

Return the listener service. The listener service is effectively a root context.


jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.