HttpAsyncRequestHandler
@Deprecated public interface NHttpRequestHandler
Modifier and Type | Method and Description |
---|---|
ConsumingNHttpEntity |
entityRequest(HttpEntityEnclosingRequest request,
HttpContext context)
Deprecated.
Triggered when a request is received with an entity.
|
void |
handle(HttpRequest request,
HttpResponse response,
NHttpResponseTrigger trigger,
HttpContext context)
Deprecated.
Initiates processing of the request.
|
ConsumingNHttpEntity entityRequest(HttpEntityEnclosingRequest request, HttpContext context) throws HttpException, 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.IOException
- in case of an I/O error.HttpException
- in case of HTTP protocol violation or a processing
problem.void handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context) throws HttpException, 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.IOException
- in case of an I/O error.HttpException
- in case of HTTP protocol violation or a processing
problem.Copyright © 2010 - 2020 Adobe. All Rights Reserved