Package org.apache.http.impl.nio
Class SSLClientIOEventDispatch
java.lang.Object
org.apache.http.impl.nio.SSLClientIOEventDispatch
- All Implemented Interfaces:
IOEventDispatch
Deprecated.
Default implementation of
IOEventDispatch
interface for SSL
(encrypted) client-side HTTP connections.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NHttpClientHandler
Deprecated.protected final HttpParams
Deprecated.private static final String
Deprecated.protected final SSLContext
Deprecated.protected final SSLIOSessionHandler
Deprecated.Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionSSLClientIOEventDispatch
(NHttpClientHandler handler, SSLContext sslContext, SSLIOSessionHandler sslHandler, HttpParams params) Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler using the givenSSLContext
.SSLClientIOEventDispatch
(NHttpClientHandler handler, SSLContext sslContext, HttpParams params) Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler using the givenSSLContext
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Triggered after the given session has been just created.protected ByteBufferAllocator
Deprecated.Creates an instance ofHeapByteBufferAllocator
to be used by HTTP connections for allocatingByteBuffer
objects.protected NHttpClientIOTarget
createConnection
(IOSession session) Deprecated.Creates an instance ofDefaultNHttpClientConnection
based on the given SSLIOSession
.protected HttpResponseFactory
Deprecated.Creates an instance ofDefaultHttpResponseFactory
to be used by HTTP connections for creatingHttpResponse
objects.protected SSLIOSession
createSSLIOSession
(IOSession session, SSLContext sslContext, SSLIOSessionHandler sslHandler) Deprecated.Creates an instance ofSSLIOSession
decorating the givenIOSession
.void
disconnected
(IOSession session) Deprecated.Triggered when the given session has been terminated.void
inputReady
(IOSession session) Deprecated.Triggered when the given session has input pending.void
outputReady
(IOSession session) Deprecated.Triggered when the given session is ready for output.void
Deprecated.Triggered when the given session as timed out.
-
Field Details
-
SSL_SESSION
Deprecated.- See Also:
-
handler
Deprecated. -
sslcontext
Deprecated. -
sslHandler
Deprecated. -
params
Deprecated.
-
-
Constructor Details
-
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(NHttpClientHandler handler, SSLContext sslContext, SSLIOSessionHandler sslHandler, HttpParams params) Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler using the givenSSLContext
. This I/O dispatcher will transparently handle SSL protocol aspects for HTTP connections.- Parameters:
handler
- the client protocol handler.sslContext
- the SSL context.sslHandler
- the SSL handler.params
- HTTP parameters.
-
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(NHttpClientHandler handler, SSLContext sslContext, HttpParams params) Deprecated.Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler using the givenSSLContext
. This I/O dispatcher will transparently handle SSL protocol aspects for HTTP connections.- Parameters:
handler
- the client protocol handler.sslContext
- the SSL context.params
- HTTP parameters.
-
-
Method Details
-
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.
-
createHttpResponseFactory
Deprecated.Creates an instance ofDefaultHttpResponseFactory
to be used by HTTP connections for creatingHttpResponse
objects.This method can be overridden in a super class in order to provide a different implementation of the
HttpResponseFactory
interface.- Returns:
- HTTP response factory.
-
createConnection
Deprecated.Creates an instance ofDefaultNHttpClientConnection
based on the given SSLIOSession
.This method can be overridden in a super class in order to provide a different implementation of the
NHttpClientIOTarget
interface.- Parameters:
session
- the underlying SSL I/O session.- Returns:
- newly created HTTP connection.
-
createSSLIOSession
protected SSLIOSession createSSLIOSession(IOSession session, SSLContext sslContext, SSLIOSessionHandler sslHandler) Deprecated.Creates an instance ofSSLIOSession
decorating the givenIOSession
.This method can be overridden in a super class in order to provide a different implementation of SSL I/O session.
- Parameters:
session
- the underlying I/O session.sslContext
- the SSL context.sslHandler
- the SSL handler.- Returns:
- newly created SSL I/O session.
-
connected
Deprecated.Description copied from interface:IOEventDispatch
Triggered after the given session has been just created.- Specified by:
connected
in interfaceIOEventDispatch
- Parameters:
session
- the I/O session.
-
disconnected
Deprecated.Description copied from interface:IOEventDispatch
Triggered when the given session has been terminated.- Specified by:
disconnected
in interfaceIOEventDispatch
- Parameters:
session
- the I/O session.
-
inputReady
Deprecated.Description copied from interface:IOEventDispatch
Triggered when the given session has input pending.- Specified by:
inputReady
in interfaceIOEventDispatch
- Parameters:
session
- the I/O session.
-
outputReady
Deprecated.Description copied from interface:IOEventDispatch
Triggered when the given session is ready for output.- Specified by:
outputReady
in interfaceIOEventDispatch
- Parameters:
session
- the I/O session.
-
timeout
Deprecated.Description copied from interface:IOEventDispatch
Triggered when the given session as timed out.- Specified by:
timeout
in interfaceIOEventDispatch
- Parameters:
session
- the I/O session.
-
SSLClientIOEventDispatch