| org.apache.http.nio.NHttpClientHandler
All known Subclasses: org.apache.http.nio.protocol.NHttpClientHandlerBase,
NHttpClientHandler | public interface NHttpClientHandler (Code) | | Abstract client-side HTTP event handler.
author: Oleg Kalnichevski |
closed | void closed(NHttpClientConnection conn)(Code) | | Triggered when the connection is closed.
Parameters: conn - closed HTTP connection. |
connected | void connected(NHttpClientConnection conn, Object attachment)(Code) | | Triggered when a new outgoing connection is created.
Parameters: conn - closed HTTP connection. Parameters: attachment - an arbitrary object that was attached to thesession request |
exception | void exception(NHttpClientConnection conn, IOException ex)(Code) | | Triggered when an I/O error occurrs while reading from or writing
to the underlying channel.
Parameters: conn - HTTP connection that caused an I/O error Parameters: ex - I/O exception |
exception | void exception(NHttpClientConnection conn, HttpException ex)(Code) | | Triggered when an HTTP protocol violation occurs while receiving
an HTTP response.
Parameters: conn - HTTP connection that caused an HTTP protocol violation Parameters: ex - HTTP protocol violation exception |
inputReady | void inputReady(NHttpClientConnection conn, ContentDecoder decoder)(Code) | | Triggered when the underlying channel is ready for reading a
new portion of the response entity through the corresponding
content decoder.
If the content consumer is unable to process the incoming content,
input event notifications can be temorarily suspended using
NHttpConnection.suspendInput .
See Also: NHttpConnection See Also: ContentDecoder Parameters: conn - HTTP connection that can produce a new portion of theincoming response content. Parameters: decoder - The content decoder to use to read content. |
outputReady | void outputReady(NHttpClientConnection conn, ContentEncoder encoder)(Code) | | Triggered when the underlying channel is ready for writing a
next portion of the request entity through the corresponding
content encoder.
If the content producer is unable to generate the outgoing content,
output event notifications can be temorarily suspended using
NHttpConnection.suspendOutput .
See Also: NHttpConnection See Also: ContentEncoder Parameters: conn - HTTP connection that can accommodate a new portion of the outgoing request content. Parameters: encoder - The content encoder to use to write content. |
timeout | void timeout(NHttpClientConnection conn)(Code) | | Triggered when no input is detected on this connection over the
maximum period of inactivity.
Parameters: conn - HTTP connection that caused timeout condition. |
|
|