Summary
Public Methods |
final
void
|
handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)
Initiates processing of the request.
|
abstract
void
|
handle(HttpRequest request, HttpResponse response, HttpContext context)
|
Public Constructors
public
SimpleNHttpRequestHandler
()
Public Methods
public
final
void
handle
(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)
Initiates processing of the request. This method does not have to submit
a response immediately. It can defer transmission of the HTTP response
back to the client without blocking the I/O thread by delegating the
process of handling the HTTP request to a worker thread. The worker
thread in its turn can use the instance of NHttpResponseTrigger
passed as a parameter to submit a response as at a later point of time
once content of the response becomes available.
Parameters
request
| the HTTP request. |
response
| the HTTP response. |
trigger
| the response trigger. |
context
| the HTTP execution context. |
public
abstract
void
handle
(HttpRequest request, HttpResponse response, HttpContext context)