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>
DefaultIOEventDispatchimplementation 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<DefaultNHttpServerConnection> connFactory)DefaultHttpServerIODispatch(NHttpServerEventHandler handler, HttpParams params)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultNHttpServerConnectioncreateConnection(IOSession session)protected voidonClosed(DefaultNHttpServerConnection conn)protected voidonConnected(DefaultNHttpServerConnection conn)protected voidonException(DefaultNHttpServerConnection conn, java.io.IOException ex)protected voidonInputReady(DefaultNHttpServerConnection conn)protected voidonOutputReady(DefaultNHttpServerConnection conn)protected voidonTimeout(DefaultNHttpServerConnection conn)-
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
-
-
-
Constructor Detail
-
DefaultHttpServerIODispatch
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, NHttpConnectionFactory<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
-
createConnection
protected DefaultNHttpServerConnection createConnection(IOSession session)
- Specified by:
createConnectionin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onConnected
protected void onConnected(DefaultNHttpServerConnection conn)
- Specified by:
onConnectedin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onClosed
protected void onClosed(DefaultNHttpServerConnection conn)
- Specified by:
onClosedin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onException
protected void onException(DefaultNHttpServerConnection conn, java.io.IOException ex)
- Specified by:
onExceptionin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onInputReady
protected void onInputReady(DefaultNHttpServerConnection conn)
- Specified by:
onInputReadyin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onOutputReady
protected void onOutputReady(DefaultNHttpServerConnection conn)
- Specified by:
onOutputReadyin classAbstractIODispatch<DefaultNHttpServerConnection>
-
onTimeout
protected void onTimeout(DefaultNHttpServerConnection conn)
- Specified by:
onTimeoutin classAbstractIODispatch<DefaultNHttpServerConnection>
-
-