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
@Immutable
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<DefaultNHttpServerConnection> connFactory) DefaultHttpServerIODispatch(NHttpServerEventHandler handler, HttpParams params) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultNHttpServerConnectioncreateConnection(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
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, NHttpConnectionFactory<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
-
createConnection
- Specified by:
createConnectionin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onConnected
- Specified by:
onConnectedin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onClosed
- Specified by:
onClosedin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onException
- Specified by:
onExceptionin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onInputReady
- Specified by:
onInputReadyin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onOutputReady
- Specified by:
onOutputReadyin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onTimeout
- Specified by:
onTimeoutin classAbstractIODispatch<DefaultNHttpServerConnection>
-
DefaultHttpServerIODispatch(NHttpServerEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)