Package org.apache.http.impl.nio
Class DefaultHttpServerIODispatch
java.lang.Object
org.apache.http.impl.nio.reactor.AbstractIODispatch<DefaultNHttpServerConnection>
org.apache.http.impl.nio.DefaultHttpServerIODispatch
- All Implemented Interfaces:
IOEventDispatch
@Contract(threading=IMMUTABLE_CONDITIONAL)
public class DefaultHttpServerIODispatch
extends AbstractIODispatch<DefaultNHttpServerConnection>
Default
IOEventDispatch
implementation
that supports both plain (non-encrypted) and SSL encrypted server side HTTP
connections.- Since:
- 4.2
-
Field Summary
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpServerIODispatch
(NHttpServerEventHandler handler, SSLContext sslContext, ConnectionConfig config) DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config) DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params) Deprecated.DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, SSLContext sslContext, HttpParams params) Deprecated.DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, ConnectionConfig config) DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory) DefaultHttpServerIODispatch
(NHttpServerEventHandler handler, HttpParams params) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultHttpServerIODispatch
create
(NHttpServerEventHandler 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 DefaultHttpServerIODispatch
create
(NHttpServerEventHandler 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
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory) -
DefaultHttpServerIODispatch
Deprecated. -
DefaultHttpServerIODispatch
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params) -
DefaultHttpServerIODispatch
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, HttpParams params) Deprecated. -
DefaultHttpServerIODispatch
- Since:
- 4.3
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config) - Since:
- 4.3
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, ConnectionConfig config) - Since:
- 4.3
-
-
Method Details
-
create
public static DefaultHttpServerIODispatch create(NHttpServerEventHandler 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 DefaultHttpServerIODispatch create(NHttpServerEventHandler 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
-
DefaultHttpServerIODispatch(NHttpServerEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)