SimpleNHttpRequestHandlerHttpAsyncRequestHandler@Deprecated
public interface NHttpRequestHandler
| Modifier and Type | Method | Description |
|---|---|---|
ConsumingNHttpEntity |
entityRequest(org.apache.http.HttpEntityEnclosingRequest request,
org.apache.http.protocol.HttpContext context) |
Deprecated.
Triggered when a request is received with an entity.
|
void |
handle(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
NHttpResponseTrigger trigger,
org.apache.http.protocol.HttpContext context) |
Deprecated.
Initiates processing of the request.
|
ConsumingNHttpEntity entityRequest(org.apache.http.HttpEntityEnclosingRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
ConsumingNHttpEntity that will be used to consume the
entity. null is a valid response value, and will indicate
that the entity should be silently ignored.
After the entity is fully consumed,
handle(HttpRequest, HttpResponse, NHttpResponseTrigger, HttpContext)
is called to notify a full request & entity are ready to be processed.
request - the entity enclosing request.context - the execution context.java.io.IOException - in case of an I/O error.org.apache.http.HttpException - in case of HTTP protocol violation or a processing
problem.void handle(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
NHttpResponseTrigger trigger,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.HttpException,
java.io.IOException
NHttpResponseTrigger
passed as a parameter to submit a response as at a later point of time
once content of the response becomes available.request - the HTTP request.response - the HTTP response.trigger - the response trigger.context - the HTTP execution context.java.io.IOException - in case of an I/O error.org.apache.http.HttpException - in case of HTTP protocol violation or a processing
problem.