org.apache.http.nio.protocol.HttpRequestExecutionHandler |
HTTP request execution handler can be used by client-side protocol handlers to trigger the submission of a new HTTP request and the processing of an HTTP response.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Triggered when the connection is terminated.
| |||||||||||
Triggered when an HTTP response is ready to be processed.
| |||||||||||
Triggered when a new connection has been established and the
HTTP context needs to be initialized.
| |||||||||||
Triggered when the underlying connection is ready to send a new
HTTP request to the target host.
|
Triggered when the connection is terminated. This event can be used to release objects stored in the context or perform some other kind of cleanup.
context | the actual HTTP context |
---|
Triggered when an HTTP response is ready to be processed.
response | the HTTP response to be processed |
---|---|
context | the actual HTTP context |
IOException |
---|
Triggered when a new connection has been established and the HTTP context needs to be initialized.
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 context |
---|---|
attachment | the object passed to the connecting I/O reactor upon the request for a new connection. |
Triggered when the underlying connection is ready to send a new
HTTP request to the target host. This method may return
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 context |
---|
null if no
request needs to be sent