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.(4.2) useDefaultHttpServerIODispatchDefault implementation ofIOEventDispatchinterface for plain (unencrypted) server-side HTTP connections.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBufferAllocatorallocatorDeprecated.protected NHttpServiceHandlerhandlerDeprecated.protected org.apache.http.params.HttpParamsparamsDeprecated.-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ByteBufferAllocatorcreateByteBufferAllocator()Deprecated.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.HttpRequestFactorycreateHttpRequestFactory()Deprecated.Creates an instance ofDefaultHttpRequestFactoryto be used by HTTP connections for creatingHttpRequestobjects.protected voidonClosed(NHttpServerIOTarget conn)Deprecated.protected voidonConnected(NHttpServerIOTarget conn)Deprecated.protected voidonException(NHttpServerIOTarget conn, java.io.IOException ex)Deprecated.protected voidonInputReady(NHttpServerIOTarget conn)Deprecated.protected voidonOutputReady(NHttpServerIOTarget conn)Deprecated.protected voidonTimeout(NHttpServerIOTarget conn)Deprecated.-
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
-
-
-
Field Detail
-
allocator
protected final ByteBufferAllocator allocator
Deprecated.
-
handler
protected final NHttpServiceHandler handler
Deprecated.
-
params
protected final org.apache.http.params.HttpParams params
Deprecated.
-
-
Constructor Detail
-
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 Detail
-
createByteBufferAllocator
protected ByteBufferAllocator 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
protected NHttpServerIOTarget createConnection(IOSession session)
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
protected void onConnected(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onConnectedin classAbstractIODispatch<NHttpServerIOTarget>
-
onClosed
protected void onClosed(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onClosedin classAbstractIODispatch<NHttpServerIOTarget>
-
onException
protected void onException(NHttpServerIOTarget conn, java.io.IOException ex)
Deprecated.- Specified by:
onExceptionin classAbstractIODispatch<NHttpServerIOTarget>
-
onInputReady
protected void onInputReady(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onInputReadyin classAbstractIODispatch<NHttpServerIOTarget>
-
onOutputReady
protected void onOutputReady(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onOutputReadyin classAbstractIODispatch<NHttpServerIOTarget>
-
onTimeout
protected void onTimeout(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onTimeoutin classAbstractIODispatch<NHttpServerIOTarget>
-
-