Package org.apache.http.impl.nio
Class DefaultClientIOEventDispatch
- java.lang.Object
-
- org.apache.http.impl.nio.reactor.AbstractIODispatch<NHttpClientIOTarget>
-
- org.apache.http.impl.nio.DefaultClientIOEventDispatch
-
- All Implemented Interfaces:
IOEventDispatch
- Direct Known Subclasses:
SSLClientIOEventDispatch
@Deprecated public class DefaultClientIOEventDispatch extends AbstractIODispatch<NHttpClientIOTarget>
Deprecated.(4.2) useDefaultHttpClientIODispatchDefault implementation ofIOEventDispatchinterface for plain (unencrypted) client-side HTTP connections.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBufferAllocatorallocatorDeprecated.protected NHttpClientHandlerhandlerDeprecated.protected org.apache.http.params.HttpParamsparamsDeprecated.-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultClientIOEventDispatch(NHttpClientHandler 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 NHttpClientIOTargetcreateConnection(IOSession session)Deprecated.Creates an instance ofDefaultNHttpClientConnectionbased on the givenIOSession.protected org.apache.http.HttpResponseFactorycreateHttpResponseFactory()Deprecated.Creates an instance ofDefaultHttpResponseFactoryto be used by HTTP connections for creatingHttpResponseobjects.protected voidonClosed(NHttpClientIOTarget conn)Deprecated.protected voidonConnected(NHttpClientIOTarget conn)Deprecated.protected voidonException(NHttpClientIOTarget conn, java.io.IOException ex)Deprecated.protected voidonInputReady(NHttpClientIOTarget conn)Deprecated.protected voidonOutputReady(NHttpClientIOTarget conn)Deprecated.protected voidonTimeout(NHttpClientIOTarget conn)Deprecated.-
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
-
-
-
Field Detail
-
handler
protected final NHttpClientHandler handler
Deprecated.
-
allocator
protected final ByteBufferAllocator allocator
Deprecated.
-
params
protected final org.apache.http.params.HttpParams params
Deprecated.
-
-
Constructor Detail
-
DefaultClientIOEventDispatch
public DefaultClientIOEventDispatch(NHttpClientHandler 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 client 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.
-
createHttpResponseFactory
protected org.apache.http.HttpResponseFactory createHttpResponseFactory()
Deprecated.Creates an instance ofDefaultHttpResponseFactoryto be used by HTTP connections for creatingHttpResponseobjects.This method can be overridden in a super class in order to provide a different implementation of the
HttpResponseFactoryinterface.- Returns:
- HTTP response factory.
-
createConnection
protected NHttpClientIOTarget createConnection(IOSession session)
Deprecated.Creates an instance ofDefaultNHttpClientConnectionbased on the givenIOSession.This method can be overridden in a super class in order to provide a different implementation of the
NHttpClientIOTargetinterface.- Specified by:
createConnectionin classAbstractIODispatch<NHttpClientIOTarget>- Parameters:
session- the underlying I/O session.- Returns:
- newly created HTTP connection.
-
onConnected
protected void onConnected(NHttpClientIOTarget conn)
Deprecated.- Specified by:
onConnectedin classAbstractIODispatch<NHttpClientIOTarget>
-
onClosed
protected void onClosed(NHttpClientIOTarget conn)
Deprecated.- Specified by:
onClosedin classAbstractIODispatch<NHttpClientIOTarget>
-
onException
protected void onException(NHttpClientIOTarget conn, java.io.IOException ex)
Deprecated.- Specified by:
onExceptionin classAbstractIODispatch<NHttpClientIOTarget>
-
onInputReady
protected void onInputReady(NHttpClientIOTarget conn)
Deprecated.- Specified by:
onInputReadyin classAbstractIODispatch<NHttpClientIOTarget>
-
onOutputReady
protected void onOutputReady(NHttpClientIOTarget conn)
Deprecated.- Specified by:
onOutputReadyin classAbstractIODispatch<NHttpClientIOTarget>
-
onTimeout
protected void onTimeout(NHttpClientIOTarget conn)
Deprecated.- Specified by:
onTimeoutin classAbstractIODispatch<NHttpClientIOTarget>
-
-