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>
DefaultIOEventDispatch
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
Constructors Constructor Description DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, ConnectionConfig config)
DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultHttpServerIODispatch
create(NHttpServerEventHandler 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 DefaultHttpServerIODispatch
create(NHttpServerEventHandler 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
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory)
-
DefaultHttpServerIODispatch
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, HttpParams params)
Deprecated.
-
DefaultHttpServerIODispatch
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
-
DefaultHttpServerIODispatch
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, HttpParams params)
Deprecated.
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, ConnectionConfig config)
- Since:
- 4.3
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
- Since:
- 4.3
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, javax.net.ssl.SSLContext sslContext, ConnectionConfig config)
- Since:
- 4.3
-
-
Method Detail
-
create
public static DefaultHttpServerIODispatch create(NHttpServerEventHandler 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 DefaultHttpServerIODispatch create(NHttpServerEventHandler 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
-
-