Package org.apache.http.nio.protocol
Interface EventListener
Deprecated.
(4.2) do not use
Event listener used by the HTTP protocol layer to report fatal exceptions
and events that may need to be logged using a logging toolkit.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Triggered when a connection has been terminated.voidDeprecated.Triggered when a new connection has been established.voidDeprecated.Triggered when a connection has timed out.voidfatalIOException(IOException ex, NHttpConnection conn) Deprecated.Triggered when an I/O error caused a connection to be terminated.voidDeprecated.Triggered when an HTTP protocol error caused a connection to be terminated.
-
Method Details
-
fatalIOException
Deprecated.Triggered when an I/O error caused a connection to be terminated.- Parameters:
ex- the I/O exception.conn- the connection.
-
fatalProtocolException
Deprecated.Triggered when an HTTP protocol error caused a connection to be terminated.- Parameters:
ex- the protocol exception.conn- the connection.
-
connectionOpen
Deprecated.Triggered when a new connection has been established.- Parameters:
conn- the connection.
-
connectionClosed
Deprecated.Triggered when a connection has been terminated.- Parameters:
conn- the connection.
-
connectionTimeout
Deprecated.Triggered when a connection has timed out.- Parameters:
conn- the connection.
-