Package org.apache.http.impl.nio
Class DefaultServerIOEventDispatch
java.lang.Object
org.apache.http.impl.nio.reactor.AbstractIODispatch<NHttpServerIOTarget>
org.apache.http.impl.nio.DefaultServerIOEventDispatch
- All Implemented Interfaces:
IOEventDispatch
- Direct Known Subclasses:
SSLServerIOEventDispatch
@Deprecated
@Contract(threading=IMMUTABLE_CONDITIONAL)
public class DefaultServerIOEventDispatch
extends AbstractIODispatch<NHttpServerIOTarget>
Deprecated.
Default implementation of
IOEventDispatch
interface for plain (unencrypted) server-side HTTP connections.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteBufferAllocator
Deprecated.protected final NHttpServiceHandler
Deprecated.protected final HttpParams
Deprecated.Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultServerIOEventDispatch
(NHttpServiceHandler handler, HttpParams params) Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteBufferAllocator
Deprecated.Creates an instance ofHeapByteBufferAllocator
to be used by HTTP connections for allocatingByteBuffer
objects.protected NHttpServerIOTarget
createConnection
(IOSession session) Deprecated.Creates an instance ofDefaultNHttpServerConnection
based on the givenIOSession
.protected HttpRequestFactory
Deprecated.Creates an instance ofDefaultHttpRequestFactory
to be used by HTTP connections for creatingHttpRequest
objects.protected void
onClosed
(NHttpServerIOTarget conn) Deprecated.protected void
Deprecated.protected void
onException
(NHttpServerIOTarget conn, IOException ex) Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
onTimeout
(NHttpServerIOTarget conn) Deprecated.Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
Field Details
-
allocator
Deprecated. -
handler
Deprecated. -
params
Deprecated.
-
-
Constructor Details
-
DefaultServerIOEventDispatch
Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.- Parameters:
handler
- the server protocol handler.params
- HTTP parameters.
-
-
Method Details
-
createByteBufferAllocator
Deprecated.Creates an instance ofHeapByteBufferAllocator
to be used by HTTP connections for allocatingByteBuffer
objects.This method can be overridden in a super class in order to provide a different implementation of the
ByteBufferAllocator
interface.- Returns:
- byte buffer allocator.
-
createHttpRequestFactory
Deprecated.Creates an instance ofDefaultHttpRequestFactory
to be used by HTTP connections for creatingHttpRequest
objects.This method can be overridden in a super class in order to provide a different implementation of the
HttpRequestFactory
interface.- Returns:
- HTTP request factory.
-
createConnection
Deprecated.Creates an instance ofDefaultNHttpServerConnection
based on the givenIOSession
.This method can be overridden in a super class in order to provide a different implementation of the
NHttpServerIOTarget
interface.- Specified by:
createConnection
in classAbstractIODispatch<NHttpServerIOTarget>
- Parameters:
session
- the underlying I/O session.- Returns:
- newly created HTTP connection.
-
onConnected
Deprecated.- Specified by:
onConnected
in classAbstractIODispatch<NHttpServerIOTarget>
-
onClosed
Deprecated.- Specified by:
onClosed
in classAbstractIODispatch<NHttpServerIOTarget>
-
onException
Deprecated.- Specified by:
onException
in classAbstractIODispatch<NHttpServerIOTarget>
-
onInputReady
Deprecated.- Specified by:
onInputReady
in classAbstractIODispatch<NHttpServerIOTarget>
-
onOutputReady
Deprecated.- Specified by:
onOutputReady
in classAbstractIODispatch<NHttpServerIOTarget>
-
onTimeout
Deprecated.- Specified by:
onTimeout
in classAbstractIODispatch<NHttpServerIOTarget>
-
DefaultHttpServerIODispatch