|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jbase.jremote.jca.inflow.InboundRequestHandler
public class InboundRequestHandler
Constructor Summary | |
---|---|
InboundRequestHandler(List<EndpointAdapter> endpoints,
RequestListenerService service)
|
Method Summary | |
---|---|
int |
getActiveTransactions()
Get the active transactions for this request handler. |
List<EndpointAdapter> |
getEndpoints()
|
javax.resource.spi.work.ExecutionContext |
getExecutionContext(String sessionId)
|
RequestListenerService |
getListenerService()
Return the listener service. |
void |
handleClose(ClientHandle handle)
Called when a client close event occurs. |
byte[] |
handleRequest(ClientHandle handle,
byte[] requestBytes)
Called when a client has sent a request. |
void |
handleResponse(ClientHandle handle,
byte[] responseBytes)
Send a response to the supplied client (sessionId). |
void |
handleTimeout(ClientHandle handle)
Called when a select times out waiting for client keys. |
protected InboundRequest |
readRequest(JBaseObjectReader reader)
|
javax.resource.spi.work.ExecutionContext |
removeExecutionContext(String sessionId)
|
void |
setExecutionContext(String sessionId,
javax.resource.spi.work.ExecutionContext ec)
|
protected void |
writeResponse(JBaseObjectWriter writer,
JBaseSerializable response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InboundRequestHandler(List<EndpointAdapter> endpoints, RequestListenerService service)
Method Detail |
---|
public List<EndpointAdapter> getEndpoints()
public RequestListenerService getListenerService()
RequestHandler
Return the listener service. The listener service is effectively a root context.
getListenerService
in interface RequestHandler
public void handleClose(ClientHandle handle)
RequestHandler
Called when a client close event occurs.
handleClose
in interface RequestHandler
public void handleTimeout(ClientHandle handle)
RequestHandler
Called when a select times out waiting for client keys.
handleTimeout
in interface RequestHandler
public byte[] handleRequest(ClientHandle handle, byte[] requestBytes)
RequestHandler
Called when a client has sent a request.
handleRequest
in interface RequestHandler
public void handleResponse(ClientHandle handle, byte[] responseBytes) throws RequestHandlerException
RequestHandler
Send a response to the supplied client (sessionId).
handleResponse
in interface RequestHandler
RequestHandlerException
protected InboundRequest readRequest(JBaseObjectReader reader) throws IOException
IOException
protected void writeResponse(JBaseObjectWriter writer, JBaseSerializable response) throws IOException
IOException
public javax.resource.spi.work.ExecutionContext getExecutionContext(String sessionId)
public javax.resource.spi.work.ExecutionContext removeExecutionContext(String sessionId)
public void setExecutionContext(String sessionId, javax.resource.spi.work.ExecutionContext ec)
public int getActiveTransactions()
Get the active transactions for this request handler.
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |