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 ByteBufferAllocatorDeprecated.protected final NHttpServiceHandlerDeprecated.protected final org.apache.http.params.HttpParamsDeprecated.Fields inherited from interface IOEventDispatch
CONNECTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultServerIOEventDispatch(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteBufferAllocatorDeprecated.Creates an instance ofHeapByteBufferAllocatorto be used by HTTP connections for allocatingByteBufferobjects.protected NHttpServerIOTargetcreateConnection(IOSession session) Deprecated.Creates an instance ofDefaultNHttpServerConnectionbased on the givenIOSession.protected org.apache.http.HttpRequestFactoryDeprecated.Creates an instance ofDefaultHttpRequestFactoryto be used by HTTP connections for creatingHttpRequestobjects.protected voidonClosed(NHttpServerIOTarget conn) Deprecated.protected voidDeprecated.protected voidonException(NHttpServerIOTarget conn, IOException ex) Deprecated.protected voidDeprecated.protected voidDeprecated.protected voidonTimeout(NHttpServerIOTarget conn) Deprecated.Methods inherited from class AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
Field Details
-
allocator
Deprecated. -
handler
Deprecated. -
params
protected final org.apache.http.params.HttpParams paramsDeprecated.
-
-
Constructor Details
-
DefaultServerIOEventDispatch
public 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.- Parameters:
handler- the server protocol handler.params- HTTP parameters.
-
-
Method Details
-
createByteBufferAllocator
Deprecated.Creates an instance ofHeapByteBufferAllocatorto be used by HTTP connections for allocatingByteBufferobjects.This method can be overridden in a super class in order to provide a different implementation of the
ByteBufferAllocatorinterface.- Returns:
- byte buffer allocator.
-
createHttpRequestFactory
protected org.apache.http.HttpRequestFactory createHttpRequestFactory()Deprecated.Creates an instance ofDefaultHttpRequestFactoryto be used by HTTP connections for creatingHttpRequestobjects.This method can be overridden in a super class in order to provide a different implementation of the
HttpRequestFactoryinterface.- Returns:
- HTTP request factory.
-
createConnection
Deprecated.Creates an instance ofDefaultNHttpServerConnectionbased on the givenIOSession.This method can be overridden in a super class in order to provide a different implementation of the
NHttpServerIOTargetinterface.- Specified by:
createConnectionin classAbstractIODispatch<NHttpServerIOTarget>- Parameters:
session- the underlying I/O session.- Returns:
- newly created HTTP connection.
-
onConnected
Deprecated.- Specified by:
onConnectedin classAbstractIODispatch<NHttpServerIOTarget>
-
onClosed
Deprecated.- Specified by:
onClosedin classAbstractIODispatch<NHttpServerIOTarget>
-
onException
Deprecated.- Specified by:
onExceptionin classAbstractIODispatch<NHttpServerIOTarget>
-
onInputReady
Deprecated.- Specified by:
onInputReadyin classAbstractIODispatch<NHttpServerIOTarget>
-
onOutputReady
Deprecated.- Specified by:
onOutputReadyin classAbstractIODispatch<NHttpServerIOTarget>
-
onTimeout
Deprecated.- Specified by:
onTimeoutin classAbstractIODispatch<NHttpServerIOTarget>
-
DefaultHttpServerIODispatch