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) useDefaultHttpServerIODispatch
Default implementation ofIOEventDispatch
interface for plain (unencrypted) server-side HTTP connections.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBufferAllocator
allocator
Deprecated.protected NHttpServiceHandler
handler
Deprecated.protected HttpParams
params
Deprecated.-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultServerIOEventDispatch(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ByteBufferAllocator
createByteBufferAllocator()
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
createHttpRequestFactory()
Deprecated.Creates an instance ofDefaultHttpRequestFactory
to be used by HTTP connections for creatingHttpRequest
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.-
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 HttpParams params
Deprecated.
-
-
Constructor Detail
-
DefaultServerIOEventDispatch
public DefaultServerIOEventDispatch(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.- Parameters:
handler
- the server protocol handler.params
- HTTP parameters.
-
-
Method Detail
-
createByteBufferAllocator
protected ByteBufferAllocator 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
protected HttpRequestFactory 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
protected NHttpServerIOTarget createConnection(IOSession session)
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
protected void onConnected(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onConnected
in classAbstractIODispatch<NHttpServerIOTarget>
-
onClosed
protected void onClosed(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onClosed
in classAbstractIODispatch<NHttpServerIOTarget>
-
onException
protected void onException(NHttpServerIOTarget conn, java.io.IOException ex)
Deprecated.- Specified by:
onException
in classAbstractIODispatch<NHttpServerIOTarget>
-
onInputReady
protected void onInputReady(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onInputReady
in classAbstractIODispatch<NHttpServerIOTarget>
-
onOutputReady
protected void onOutputReady(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onOutputReady
in classAbstractIODispatch<NHttpServerIOTarget>
-
onTimeout
protected void onTimeout(NHttpServerIOTarget conn)
Deprecated.- Specified by:
onTimeout
in classAbstractIODispatch<NHttpServerIOTarget>
-
-