@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpServerIODispatch extends AbstractIODispatch<DefaultNHttpServerConnection>
IOEventDispatch
implementation
that supports both plain (non-encrypted) and SSL encrypted server side HTTP
connections.Modifier and Type | Field and Description |
---|---|
private NHttpConnectionFactory<? extends DefaultNHttpServerConnection> |
connFactory |
private NHttpServerEventHandler |
handler |
CONNECTION_KEY
Constructor and Description |
---|
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
ConnectionConfig config) |
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
HttpParams params)
Deprecated.
|
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory) |
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
SSLContext sslContext,
ConnectionConfig config) |
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
SSLContext sslContext,
HttpParams params)
Deprecated.
|
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
SSLContext sslContext,
SSLSetupHandler sslHandler,
ConnectionConfig config) |
DefaultHttpServerIODispatch(NHttpServerEventHandler handler,
SSLContext sslContext,
SSLSetupHandler sslHandler,
HttpParams params)
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
protected DefaultNHttpServerConnection |
createConnection(IOSession session) |
protected void |
onClosed(DefaultNHttpServerConnection conn) |
protected void |
onConnected(DefaultNHttpServerConnection conn) |
protected void |
onException(DefaultNHttpServerConnection conn,
IOException ex) |
protected void |
onInputReady(DefaultNHttpServerConnection conn) |
protected void |
onOutputReady(DefaultNHttpServerConnection conn) |
protected void |
onTimeout(DefaultNHttpServerConnection conn) |
connected, disconnected, inputReady, outputReady, timeout
private final NHttpServerEventHandler handler
private final NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connFactory)
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, HttpParams params)
DefaultHttpServerIODispatch(
NHttpServerEventHandler, ConnectionConfig)
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
@Deprecated public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, HttpParams params)
DefaultHttpServerIODispatch(
NHttpServerEventHandler, SSLContext, ConnectionConfig)
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, ConnectionConfig config)
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
public DefaultHttpServerIODispatch(NHttpServerEventHandler handler, SSLContext sslContext, ConnectionConfig config)
public static DefaultHttpServerIODispatch create(NHttpServerEventHandler handler, SSLContext sslContext, ConnectionConfig config)
handler
- the client protocol handler.sslContext
- an SSLContext or null (for a plain text connection.)config
- a connection configurationpublic static DefaultHttpServerIODispatch create(NHttpServerEventHandler handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
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 configurationprotected DefaultNHttpServerConnection createConnection(IOSession session)
createConnection
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onConnected(DefaultNHttpServerConnection conn)
onConnected
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onClosed(DefaultNHttpServerConnection conn)
onClosed
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onException(DefaultNHttpServerConnection conn, IOException ex)
onException
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onInputReady(DefaultNHttpServerConnection conn)
onInputReady
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onOutputReady(DefaultNHttpServerConnection conn)
onOutputReady
in class AbstractIODispatch<DefaultNHttpServerConnection>
protected void onTimeout(DefaultNHttpServerConnection conn)
onTimeout
in class AbstractIODispatch<DefaultNHttpServerConnection>
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses