|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.nio.reactor.AbstractIODispatch<NHttpClientIOTarget> org.apache.http.impl.nio.DefaultClientIOEventDispatch
DefaultHttpClientIODispatch
@Deprecated public class DefaultClientIOEventDispatch
Default implementation of IOEventDispatch
interface for plain (unencrypted) client-side HTTP connections.
Field Summary | |
---|---|
protected ByteBufferAllocator |
allocator
Deprecated. |
protected NHttpClientHandler |
handler
Deprecated. |
protected HttpParams |
params
Deprecated. |
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch |
---|
CONNECTION_KEY |
Constructor Summary | |
---|---|
DefaultClientIOEventDispatch(NHttpClientHandler 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 | |
---|---|
protected ByteBufferAllocator |
createByteBufferAllocator()
Deprecated. Creates an instance of HeapByteBufferAllocator to be used
by HTTP connections for allocating ByteBuffer objects. |
protected NHttpClientIOTarget |
createConnection(IOSession session)
Deprecated. Creates an instance of DefaultNHttpClientConnection based on the
given IOSession . |
protected HttpResponseFactory |
createHttpResponseFactory()
Deprecated. Creates an instance of DefaultHttpResponseFactory to be used
by HTTP connections for creating HttpResponse
objects. |
protected void |
onClosed(NHttpClientIOTarget conn)
Deprecated. |
protected void |
onConnected(NHttpClientIOTarget conn)
Deprecated. |
protected void |
onException(NHttpClientIOTarget conn,
IOException ex)
Deprecated. |
protected void |
onInputReady(NHttpClientIOTarget conn)
Deprecated. |
protected void |
onOutputReady(NHttpClientIOTarget conn)
Deprecated. |
protected void |
onTimeout(NHttpClientIOTarget conn)
Deprecated. |
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch |
---|
connected, disconnected, inputReady, outputReady, timeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final NHttpClientHandler handler
protected final ByteBufferAllocator allocator
protected final HttpParams params
Constructor Detail |
---|
public DefaultClientIOEventDispatch(NHttpClientHandler handler, HttpParams params)
handler
- the client protocol handler.params
- HTTP parameters.Method Detail |
---|
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 HttpResponseFactory createHttpResponseFactory()
DefaultHttpResponseFactory
to be used
by HTTP connections for creating HttpResponse
objects.
This method can be overridden in a super class in order to provide
a different implementation of the HttpResponseFactory
interface.
protected NHttpClientIOTarget createConnection(IOSession session)
DefaultNHttpClientConnection
based on the
given IOSession
.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpClientIOTarget
interface.
createConnection
in class AbstractIODispatch<NHttpClientIOTarget>
session
- the underlying I/O session.
protected void onConnected(NHttpClientIOTarget conn)
onConnected
in class AbstractIODispatch<NHttpClientIOTarget>
protected void onClosed(NHttpClientIOTarget conn)
onClosed
in class AbstractIODispatch<NHttpClientIOTarget>
protected void onException(NHttpClientIOTarget conn, IOException ex)
onException
in class AbstractIODispatch<NHttpClientIOTarget>
protected void onInputReady(NHttpClientIOTarget conn)
onInputReady
in class AbstractIODispatch<NHttpClientIOTarget>
protected void onOutputReady(NHttpClientIOTarget conn)
onOutputReady
in class AbstractIODispatch<NHttpClientIOTarget>
protected void onTimeout(NHttpClientIOTarget conn)
onTimeout
in class AbstractIODispatch<NHttpClientIOTarget>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |