@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.| Modifier and Type | Field and Description |
|---|---|
private NHttpConnectionFactory<DefaultNHttpClientConnection> |
connFactory |
private NHttpClientEventHandler |
handler |
CONNECTION_KEY| 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,
java.io.IOException ex) |
protected void |
onInputReady(DefaultNHttpClientConnection conn) |
protected void |
onOutputReady(DefaultNHttpClientConnection conn) |
protected void |
onTimeout(DefaultNHttpClientConnection conn) |
connected, disconnected, inputReady, outputReady, timeoutprivate final NHttpClientEventHandler handler
private final NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory
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, javax.net.ssl.SSLContext sslcontext, SSLSetupHandler sslHandler, HttpParams params)
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslcontext, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, SSLContext, ConnectionConfig)public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, ConnectionConfig config)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslcontext, SSLSetupHandler sslHandler, ConnectionConfig config)
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.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, java.io.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>