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.
Default implementation of
IOEventDispatch
interface for plain (unencrypted) client-side HTTP connections.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteBufferAllocatorDeprecated.protected final NHttpClientHandlerDeprecated.protected final HttpParamsDeprecated.Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultClientIOEventDispatch(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
Modifier and TypeMethodDescriptionprotected ByteBufferAllocatorDeprecated.Creates an instance ofHeapByteBufferAllocatorto be used by HTTP connections for allocatingByteBufferobjects.protected NHttpClientIOTargetcreateConnection(IOSession session) Deprecated.Creates an instance ofDefaultNHttpClientConnectionbased on the givenIOSession.protected HttpResponseFactoryDeprecated.Creates an instance ofDefaultHttpResponseFactoryto be used by HTTP connections for creatingHttpResponseobjects.protected voidonClosed(NHttpClientIOTarget conn) Deprecated.protected voidDeprecated.protected voidonException(NHttpClientIOTarget conn, IOException ex) Deprecated.protected voidDeprecated.protected voidDeprecated.protected voidonTimeout(NHttpClientIOTarget conn) Deprecated.Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
Field Details
-
handler
Deprecated. -
allocator
Deprecated. -
params
Deprecated.
-
-
Constructor Details
-
DefaultClientIOEventDispatch
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 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.
-
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
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
Deprecated.- Specified by:
onConnectedin classAbstractIODispatch<NHttpClientIOTarget>
-
onClosed
Deprecated.- Specified by:
onClosedin classAbstractIODispatch<NHttpClientIOTarget>
-
onException
Deprecated.- Specified by:
onExceptionin classAbstractIODispatch<NHttpClientIOTarget>
-
onInputReady
Deprecated.- Specified by:
onInputReadyin classAbstractIODispatch<NHttpClientIOTarget>
-
onOutputReady
Deprecated.- Specified by:
onOutputReadyin classAbstractIODispatch<NHttpClientIOTarget>
-
onTimeout
Deprecated.- Specified by:
onTimeoutin classAbstractIODispatch<NHttpClientIOTarget>
-
DefaultHttpClientIODispatch