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
@Immutable
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 TypeMethodDescriptionprotected DefaultNHttpClientConnectioncreateConnection(IOSession session) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidMethods 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
-
createConnection
- Specified by:
createConnectionin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onConnected
- Specified by:
onConnectedin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onClosed
- Specified by:
onClosedin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onException
- Specified by:
onExceptionin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onInputReady
- Specified by:
onInputReadyin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onOutputReady
- Specified by:
onOutputReadyin classAbstractIODispatch<DefaultNHttpClientConnection>
-
onTimeout
- Specified by:
onTimeoutin classAbstractIODispatch<DefaultNHttpClientConnection>
-
DefaultHttpClientIODispatch(NHttpClientEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)