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>
Default
IOEventDispatch 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
ConstructorsConstructorDescriptionDefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, ConnectionConfig config) DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config) DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params) Deprecated.DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, HttpParams params) Deprecated.DefaultHttpClientIODispatch(NHttpClientEventHandler handler, ConnectionConfig config) 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, HttpParams params) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultHttpClientIODispatchcreate(NHttpClientEventHandler handler, 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 DefaultHttpClientIODispatchcreate(NHttpClientEventHandler handler, 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 Details
-
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. -
DefaultHttpClientIODispatch
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params) -
DefaultHttpClientIODispatch
@Deprecated public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, HttpParams params) Deprecated. -
DefaultHttpClientIODispatch
- Since:
- 4.3
-
DefaultHttpClientIODispatch
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config) - Since:
- 4.3
-
DefaultHttpClientIODispatch
public DefaultHttpClientIODispatch(NHttpClientEventHandler handler, SSLContext sslContext, ConnectionConfig config) - Since:
- 4.3
-
-
Method Details
-
create
public static DefaultHttpClientIODispatch create(NHttpClientEventHandler handler, 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, 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
-
DefaultHttpClientIODispatch(NHttpClientEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)