@Immutable public class DefaultHttpClientIODispatch extends AbstractIODispatch<DefaultNHttpClientConnection>
IOEventDispatch implementation that supports both plain (non-encrypted)
and SSL encrypted client side HTTP connections.CONNECTION_KEY| Constructor and Description |
|---|
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
HttpParams params) |
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory)
Creates a new instance of this class to be used for dispatching I/O event
notifications to the given protocol handler.
|
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
SSLContext sslcontext,
HttpParams params) |
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
SSLContext sslcontext,
SSLSetupHandler sslHandler,
HttpParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected DefaultNHttpClientConnection |
createConnection(IOSession session) |
protected void |
onClosed(DefaultNHttpClientConnection conn) |
protected void |
onConnected(DefaultNHttpClientConnection conn) |
protected void |
onException(DefaultNHttpClientConnection conn,
IOException ex) |
protected void |
onInputReady(DefaultNHttpClientConnection conn) |
protected void |
onOutputReady(DefaultNHttpClientConnection conn) |
protected void |
onTimeout(DefaultNHttpClientConnection conn) |
connected, disconnected, inputReady, outputReady, timeoutpublic DefaultHttpClientIODispatch(NHttpClientEventHandler handler, NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory)
handler - the client protocol handler.connFactory - HTTP client connection factory.public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, HttpParams params)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, SSLSetupHandler sslHandler, HttpParams params)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, HttpParams params)
protected DefaultNHttpClientConnection createConnection(IOSession session)
createConnection in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onConnected(DefaultNHttpClientConnection conn)
onConnected in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onClosed(DefaultNHttpClientConnection conn)
onClosed in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onException(DefaultNHttpClientConnection conn, IOException ex)
onException in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onInputReady(DefaultNHttpClientConnection conn)
onInputReady in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onOutputReady(DefaultNHttpClientConnection conn)
onOutputReady in class AbstractIODispatch<DefaultNHttpClientConnection>protected void onTimeout(DefaultNHttpClientConnection conn)
onTimeout in class AbstractIODispatch<DefaultNHttpClientConnection>Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.