Package org.apache.http.nio.protocol
Interface EventListener
-
@Deprecated public interface EventListenerDeprecated.(4.2) do not useEvent 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidconnectionClosed(NHttpConnection conn)Deprecated.Triggered when a connection has been terminated.voidconnectionOpen(NHttpConnection conn)Deprecated.Triggered when a new connection has been established.voidconnectionTimeout(NHttpConnection conn)Deprecated.Triggered when a connection has timed out.voidfatalIOException(java.io.IOException ex, NHttpConnection conn)Deprecated.Triggered when an I/O error caused a connection to be terminated.voidfatalProtocolException(HttpException ex, NHttpConnection conn)Deprecated.Triggered when an HTTP protocol error caused a connection to be terminated.
-
-
-
Method Detail
-
fatalIOException
void fatalIOException(java.io.IOException ex, NHttpConnection conn)Deprecated.Triggered when an I/O error caused a connection to be terminated.- Parameters:
ex- the I/O exception.conn- the connection.
-
fatalProtocolException
void fatalProtocolException(HttpException ex, NHttpConnection conn)
Deprecated.Triggered when an HTTP protocol error caused a connection to be terminated.- Parameters:
ex- the protocol exception.conn- the connection.
-
connectionOpen
void connectionOpen(NHttpConnection conn)
Deprecated.Triggered when a new connection has been established.- Parameters:
conn- the connection.
-
connectionClosed
void connectionClosed(NHttpConnection conn)
Deprecated.Triggered when a connection has been terminated.- Parameters:
conn- the connection.
-
connectionTimeout
void connectionTimeout(NHttpConnection conn)
Deprecated.Triggered when a connection has timed out.- Parameters:
conn- the connection.
-
-