Package org.apache.http.nio.protocol
Interface NHttpResponseTrigger
-
@Deprecated public interface NHttpResponseTrigger
Deprecated.(4.2) useHttpAsyncExchange
Callback interface to submit HTTP responses asynchronously.The
NHttpRequestHandler.handle(org.apache.http.HttpRequest, HttpResponse, NHttpResponseTrigger, org.apache.http.protocol.HttpContext)
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 ofNHttpResponseTrigger
passed as a parameter to submit a response as at a later point of time once the response becomes available.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
handleException(java.io.IOException ex)
Deprecated.Report an IOException thrown while processing the request.void
handleException(HttpException ex)
Deprecated.Reports a protocol exception thrown while processing the request.void
submitResponse(HttpResponse response)
Deprecated.Submits a response to be sent back to the client as a result of processing of the request.
-
-
-
Method Detail
-
submitResponse
void submitResponse(HttpResponse response)
Deprecated.Submits a response to be sent back to the client as a result of processing of the request.
-
handleException
void handleException(HttpException ex)
Deprecated.Reports a protocol exception thrown while processing the request.
-
handleException
void handleException(java.io.IOException ex)
Deprecated.Report an IOException thrown while processing the request.
-
-