public interface

EventListener

org.apache.http.nio.protocol.EventListener

Class Overview

Event listener used by the HTTP protocol layer to report fatal exceptions and events that may need to be logged using a logging toolkit.

Summary

Public Methods
abstract void connectionClosed(NHttpConnection conn)
Triggered when a connection has been terminated.
abstract void connectionOpen(NHttpConnection conn)
Triggered when a new connection has been established.
abstract void connectionTimeout(NHttpConnection conn)
Triggered when a connection has timed out.
abstract void fatalIOException(IOException ex, NHttpConnection conn)
Triggered when an I/O error caused a connection to be terminated.
abstract void fatalProtocolException(HttpException ex, NHttpConnection conn)
Triggered when an HTTP protocol error caused a connection to be terminated.

Public Methods

public abstract void connectionClosed (NHttpConnection conn)

Triggered when a connection has been terminated.

Parameters
conn the connection.

public abstract void connectionOpen (NHttpConnection conn)

Triggered when a new connection has been established.

Parameters
conn the connection.

public abstract void connectionTimeout (NHttpConnection conn)

Triggered when a connection has timed out.

Parameters
conn the connection.

public abstract void fatalIOException (IOException ex, NHttpConnection conn)

Triggered when an I/O error caused a connection to be terminated.

Parameters
ex the I/O exception.
conn the connection.

public abstract void fatalProtocolException (HttpException ex, NHttpConnection conn)

Triggered when an HTTP protocol error caused a connection to be terminated.

Parameters
ex the protocol exception.
conn the connection.