IOEventDispatchSSLClientIOEventDispatch@Deprecated public class SSLClientIOEventDispatch extends java.lang.Object implements IOEventDispatch
IOEventDispatch interface for SSL
(encrypted) client-side HTTP connections.| Modifier and Type | Field | Description |
|---|---|---|
protected NHttpClientHandler |
handler |
Deprecated.
|
protected org.apache.http.params.HttpParams |
params |
Deprecated.
|
protected javax.net.ssl.SSLContext |
sslcontext |
Deprecated.
|
protected SSLIOSessionHandler |
sslHandler |
Deprecated.
|
CONNECTION_KEY| Constructor | Description |
|---|---|
SSLClientIOEventDispatch(NHttpClientHandler handler,
javax.net.ssl.SSLContext sslContext,
SSLIOSessionHandler sslHandler,
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 using the given
SSLContext. |
SSLClientIOEventDispatch(NHttpClientHandler handler,
javax.net.ssl.SSLContext sslContext,
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 using the given
SSLContext. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
connected(IOSession session) |
Deprecated.
Triggered after the given session has been just created.
|
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 SSL IOSession. |
protected org.apache.http.HttpResponseFactory |
createHttpResponseFactory() |
Deprecated.
Creates an instance of
DefaultHttpResponseFactory to be used
by HTTP connections for creating HttpResponse
objects. |
protected SSLIOSession |
createSSLIOSession(IOSession session,
javax.net.ssl.SSLContext sslContext,
SSLIOSessionHandler sslHandler) |
Deprecated.
Creates an instance of
SSLIOSession decorating the given
IOSession. |
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 |
timeout(IOSession session) |
Deprecated.
Triggered when the given session as timed out.
|
protected final NHttpClientHandler handler
protected final javax.net.ssl.SSLContext sslcontext
protected final SSLIOSessionHandler sslHandler
protected final org.apache.http.params.HttpParams params
public SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.SSLContext sslContext, SSLIOSessionHandler sslHandler, org.apache.http.params.HttpParams params)
SSLContext. This I/O dispatcher will transparently handle SSL
protocol aspects for HTTP connections.handler - the client protocol handler.sslContext - the SSL context.sslHandler - the SSL handler.params - HTTP parameters.public SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.SSLContext sslContext, org.apache.http.params.HttpParams params)
SSLContext. This I/O dispatcher will transparently handle SSL
protocol aspects for HTTP connections.handler - the client protocol handler.sslContext - the SSL context.params - HTTP parameters.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 org.apache.http.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 SSL IOSession.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpClientIOTarget interface.
session - the underlying SSL I/O session.protected SSLIOSession createSSLIOSession(IOSession session, javax.net.ssl.SSLContext sslContext, SSLIOSessionHandler sslHandler)
SSLIOSession decorating the given
IOSession.
This method can be overridden in a super class in order to provide a different implementation of SSL I/O session.
session - the underlying I/O session.sslContext - the SSL context.sslHandler - the SSL handler.public void connected(IOSession session)
IOEventDispatchconnected in interface IOEventDispatchsession - the I/O session.public void disconnected(IOSession session)
IOEventDispatchdisconnected in interface IOEventDispatchsession - the I/O session.public void inputReady(IOSession session)
IOEventDispatchinputReady in interface IOEventDispatchsession - the I/O session.public void outputReady(IOSession session)
IOEventDispatchoutputReady in interface IOEventDispatchsession - the I/O session.public void timeout(IOSession session)
IOEventDispatchtimeout in interface IOEventDispatchsession - the I/O session.