@Contract(threading=IMMUTABLE_CONDITIONAL) 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,
ConnectionConfig config) |
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
HttpParams params)
Deprecated.
|
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,
ConnectionConfig config) |
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
SSLContext sslcontext,
HttpParams params)
Deprecated.
|
DefaultHttpClientIODispatch(NHttpClientEventHandler handler,
SSLContext sslcontext,
SSLSetupHandler sslHandler,
ConnectionConfig config) |
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, timeout
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory)
handler
- the client protocol handler.connFactory
- HTTP client connection factory.@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, ConnectionConfig)
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, SSLSetupHandler sslHandler, HttpParams params)
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, SSLContext, ConnectionConfig)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, ConnectionConfig config)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, SSLSetupHandler sslHandler, ConnectionConfig config)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslcontext, ConnectionConfig config)
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–2017 The Apache Software Foundation. All rights reserved.