Package org.apache.http.impl.nio
Class DefaultHttpClientIODispatch
- java.lang.Object
-
- org.apache.http.impl.nio.reactor.AbstractIODispatch<DefaultNHttpClientConnection>
-
- org.apache.http.impl.nio.DefaultHttpClientIODispatch
-
- All Implemented Interfaces:
IOEventDispatch
@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpClientIODispatch extends AbstractIODispatch<DefaultNHttpClientConnection>
DefaultIOEventDispatch
implementation that supports both plain (non-encrypted) and SSL encrypted client side HTTP connections.- Since:
- 4.2
-
-
Field Summary
-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultHttpClientIODispatch
create(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.static DefaultHttpClientIODispatch
create(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.-
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
-
-
-
Constructor Detail
-
DefaultHttpClientIODispatch
public 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.- Parameters:
handler
- the client protocol handler.connFactory
- HTTP client connection factory.
-
DefaultHttpClientIODispatch
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, HttpParams params)
Deprecated.
-
DefaultHttpClientIODispatch
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
-
DefaultHttpClientIODispatch
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, HttpParams params)
Deprecated.
-
DefaultHttpClientIODispatch
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, ConnectionConfig config)
- Since:
- 4.3
-
DefaultHttpClientIODispatch
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
- Since:
- 4.3
-
DefaultHttpClientIODispatch
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, ConnectionConfig config)
- Since:
- 4.3
-
-
Method Detail
-
create
public static DefaultHttpClientIODispatch create(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.- Parameters:
handler
- the client protocol handler.sslContext
- an SSLContext or null (for a plain text connection.)config
- a connection configuration- Returns:
- a new instance
- Since:
- 4.4.7
-
create
public static DefaultHttpClientIODispatch create(NHttpClientEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.- Parameters:
handler
- the client protocol handler.sslContext
- an SSLContext or null (for a plain text connection.)sslHandler
- customizes various aspects of the TLS/SSL protocol.config
- a connection configuration- Returns:
- a new instance
- Since:
- 4.4.7
-
-