BasicAsyncRequestHandler@Deprecated public abstract class SimpleNHttpRequestHandler extends Object implements NHttpRequestHandler
NHttpRequestHandler that abstracts away
the need to use NHttpResponseTrigger. Implementations need only to
implement handle(HttpRequest, HttpResponse, HttpContext).| Constructor and Description |
|---|
SimpleNHttpRequestHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handle(HttpRequest request,
HttpResponse response,
HttpContext context)
Deprecated.
|
void |
handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
Initiates processing of the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentityRequestpublic final void handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context) throws HttpException, IOException
NHttpRequestHandlerNHttpResponseTrigger
passed as a parameter to submit a response as at a later point of time
once content of the response becomes available.handle in interface NHttpRequestHandlerrequest - the HTTP request.response - the HTTP response.trigger - the response trigger.context - the HTTP execution context.HttpException - in case of HTTP protocol violation or a processing
problem.IOException - in case of an I/O error.public abstract void handle(HttpRequest request, HttpResponse response, HttpContext context) throws HttpException, IOException
HttpExceptionIOExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.