HttpAsyncRequestExecutor and HttpAsyncRequester@Deprecated
public interface HttpRequestExecutionHandler
| Modifier and Type | Method | Description |
|---|---|---|
void |
finalizeContext(org.apache.http.protocol.HttpContext context) |
Deprecated.
Triggered when the connection is terminated.
|
void |
handleResponse(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
Deprecated.
Triggered when an HTTP response is ready to be processed.
|
void |
initalizeContext(org.apache.http.protocol.HttpContext context,
java.lang.Object attachment) |
Deprecated.
Triggered when a new connection has been established and the
HTTP context needs to be initialized.
|
org.apache.http.HttpRequest |
submitRequest(org.apache.http.protocol.HttpContext context) |
Deprecated.
Triggered when the underlying connection is ready to send a new
HTTP request to the target host.
|
void initalizeContext(org.apache.http.protocol.HttpContext context,
java.lang.Object attachment)
The attachment object is the same object which was passed to the connecting I/O reactor when the connection request was made. The attachment may optionally contain some state information required in order to correctly initialize the HTTP context.
context - the actual HTTP contextattachment - the object passed to the connecting I/O reactor
upon the request for a new connection.ConnectingIOReactor.connect(java.net.SocketAddress, java.net.SocketAddress, java.lang.Object, org.apache.http.nio.reactor.SessionRequestCallback)org.apache.http.HttpRequest submitRequest(org.apache.http.protocol.HttpContext context)
null if the client is not yet ready to send a
request. In this case the connection will remain open and
can be activated at a later point.context - the actual HTTP contextnull if no
request needs to be sentvoid handleResponse(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws java.io.IOException
response - the HTTP response to be processedcontext - the actual HTTP contextjava.io.IOException - if a problem is encounteredvoid finalizeContext(org.apache.http.protocol.HttpContext context)
context - the actual HTTP context