public interface RequestTrackerIF
| Modifier and Type | Method and Description |
|---|---|
void |
bindDefaultRequestHandler(DmpRequestProcessorIF requestProcessor)
If you bind a default request handler, any requests that aren't handled
by your class specific request processors will be sent to this handler.
|
void |
bindRequestProcessor(Class<? extends org.dmd.dmp.server.extended.Request> clazz,
DmpRequestProcessorIF requestProcessor)
This method binds a request processor to a particular class that's derived from the
the DMP Request class.
|
int |
processRequest(org.dmd.dmp.server.extended.Request req,
DmpResponseHandlerIF responseHandler)
This method allows you to submit a request and receive asynchronous responses via the
response handler.
|
int |
processRequest(org.dmd.dmp.server.extended.Request request,
DmpResponseHandlerIF handler,
int timeoutSeconds)
This method allows you to submit a request with a specified timeout value.
|
void |
processResponse(org.dmd.dmp.server.extended.Response response)
This method forwards the specified response back to the appropriate response handler.
|
org.dmd.dmp.server.extended.Response |
processSynchronousRequest(org.dmd.dmp.server.extended.Request req,
DmpResponseHandlerIF asyncResponseHandler,
int timeoutSeconds)
This method allows for synchronous processing of a request; this is generally used when
service DMP requests that arrive via GWT RPC.
|
void bindDefaultRequestHandler(DmpRequestProcessorIF requestProcessor)
requestProcessor - void bindRequestProcessor(Class<? extends org.dmd.dmp.server.extended.Request> clazz, DmpRequestProcessorIF requestProcessor)
clazz - The class of Request handled by the processor.requestProcessor - The request processor.int processRequest(org.dmd.dmp.server.extended.Request req,
DmpResponseHandlerIF responseHandler)
req - The request.responseHandler - Where to send the responses.int processRequest(org.dmd.dmp.server.extended.Request request,
DmpResponseHandlerIF handler,
int timeoutSeconds)
request - The request.handler - Where to send the response.timeoutSeconds - The time out delay.org.dmd.dmp.server.extended.Response processSynchronousRequest(org.dmd.dmp.server.extended.Request req,
DmpResponseHandlerIF asyncResponseHandler,
int timeoutSeconds)
req - The request.asyncResponseHandler - The handler that will handle any responses beyond the first one.timeoutSeconds - The timeout. This should be less than the standard HTTP session timeout.void processResponse(org.dmd.dmp.server.extended.Response response)
response - the response to be forwarded.Copyright © 2019. All rights reserved.