class NullRequestHandler extends Object implements HttpAsyncRequestHandler<Object>
Modifier and Type | Field and Description |
---|---|
static NullRequestHandler |
INSTANCE |
Constructor and Description |
---|
NullRequestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Object obj,
HttpAsyncExchange httpexchange,
HttpContext context)
Triggered to complete request processing and to initiate the process of
generating a response.
|
HttpAsyncRequestConsumer<Object> |
processRequest(HttpRequest request,
HttpContext context)
Triggered when an incoming request is received.
|
public static final NullRequestHandler INSTANCE
public NullRequestHandler()
public HttpAsyncRequestConsumer<Object> processRequest(HttpRequest request, HttpContext context)
HttpAsyncRequestHandler
HttpAsyncRequestConsumer
that will be used to process
the request and consume message content if enclosed. The consumer
can optionally parse or transform the message content into a structured
object which is then passed onto
the HttpAsyncRequestHandler.handle(Object, HttpAsyncExchange, HttpContext)
method for further processing.processRequest
in interface HttpAsyncRequestHandler<Object>
request
- the entity enclosing request.context
- the execution context.public void handle(Object obj, HttpAsyncExchange httpexchange, HttpContext context)
HttpAsyncRequestHandler
HttpAsyncExchange
once response content becomes available.handle
in interface HttpAsyncRequestHandler<Object>
obj
- request data returned by the request consumer.httpexchange
- HTTP exchange.context
- HTTP execution context.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses