IOEventDispatchSSLServerIOEventDispatchDefaultHttpServerIODispatch@Deprecated @Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultServerIOEventDispatch extends AbstractIODispatch<NHttpServerIOTarget>
IOEventDispatch
interface for plain (unencrypted) server-side HTTP connections.| Modifier and Type | Field | Description |
|---|---|---|
protected ByteBufferAllocator |
allocator |
Deprecated.
|
protected NHttpServiceHandler |
handler |
Deprecated.
|
protected org.apache.http.params.HttpParams |
params |
Deprecated.
|
CONNECTION_KEY| Constructor | Description |
|---|---|
DefaultServerIOEventDispatch(NHttpServiceHandler handler,
org.apache.http.params.HttpParams params) |
Deprecated.
Creates a new instance of this class to be used for dispatching I/O event
notifications to the given protocol handler.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected ByteBufferAllocator |
createByteBufferAllocator() |
Deprecated.
Creates an instance of
HeapByteBufferAllocator to be used
by HTTP connections for allocating ByteBuffer objects. |
protected NHttpServerIOTarget |
createConnection(IOSession session) |
Deprecated.
Creates an instance of
DefaultNHttpServerConnection based on the
given IOSession. |
protected org.apache.http.HttpRequestFactory |
createHttpRequestFactory() |
Deprecated.
Creates an instance of
DefaultHttpRequestFactory to be used
by HTTP connections for creating HttpRequest
objects. |
protected void |
onClosed(NHttpServerIOTarget conn) |
Deprecated.
|
protected void |
onConnected(NHttpServerIOTarget conn) |
Deprecated.
|
protected void |
onException(NHttpServerIOTarget conn,
java.io.IOException ex) |
Deprecated.
|
protected void |
onInputReady(NHttpServerIOTarget conn) |
Deprecated.
|
protected void |
onOutputReady(NHttpServerIOTarget conn) |
Deprecated.
|
protected void |
onTimeout(NHttpServerIOTarget conn) |
Deprecated.
|
connected, disconnected, inputReady, outputReady, timeoutprotected final ByteBufferAllocator allocator
protected final NHttpServiceHandler handler
protected final org.apache.http.params.HttpParams params
public DefaultServerIOEventDispatch(NHttpServiceHandler handler, org.apache.http.params.HttpParams params)
handler - the server protocol handler.params - HTTP parameters.protected ByteBufferAllocator createByteBufferAllocator()
HeapByteBufferAllocator to be used
by HTTP connections for allocating ByteBuffer objects.
This method can be overridden in a super class in order to provide
a different implementation of the ByteBufferAllocator interface.
protected org.apache.http.HttpRequestFactory createHttpRequestFactory()
DefaultHttpRequestFactory to be used
by HTTP connections for creating HttpRequest
objects.
This method can be overridden in a super class in order to provide
a different implementation of the HttpRequestFactory interface.
protected NHttpServerIOTarget createConnection(IOSession session)
DefaultNHttpServerConnection based on the
given IOSession.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpServerIOTarget interface.
createConnection in class AbstractIODispatch<NHttpServerIOTarget>session - the underlying I/O session.protected void onConnected(NHttpServerIOTarget conn)
onConnected in class AbstractIODispatch<NHttpServerIOTarget>protected void onClosed(NHttpServerIOTarget conn)
onClosed in class AbstractIODispatch<NHttpServerIOTarget>protected void onException(NHttpServerIOTarget conn, java.io.IOException ex)
onException in class AbstractIODispatch<NHttpServerIOTarget>protected void onInputReady(NHttpServerIOTarget conn)
onInputReady in class AbstractIODispatch<NHttpServerIOTarget>protected void onOutputReady(NHttpServerIOTarget conn)
onOutputReady in class AbstractIODispatch<NHttpServerIOTarget>protected void onTimeout(NHttpServerIOTarget conn)
onTimeout in class AbstractIODispatch<NHttpServerIOTarget>