Package org.apache.http.impl.nio.ssl
Class SSLClientIOEventDispatch
- java.lang.Object
-
- org.apache.http.impl.nio.reactor.AbstractIODispatch<NHttpClientIOTarget>
-
- org.apache.http.impl.nio.DefaultClientIOEventDispatch
-
- org.apache.http.impl.nio.ssl.SSLClientIOEventDispatch
-
- All Implemented Interfaces:
IOEventDispatch
@Deprecated public class SSLClientIOEventDispatch extends DefaultClientIOEventDispatch
Deprecated.(4.2) useDefaultHttpClientIODispatch
Default implementation ofIOEventDispatch
interface for SSL (encrypted) client-side HTTP connections.- Since:
- 4.1
-
-
Field Summary
Fields Modifier and Type Field Description private javax.net.ssl.SSLContext
sslContext
Deprecated.private SSLSetupHandler
sslHandler
Deprecated.-
Fields inherited from class org.apache.http.impl.nio.DefaultClientIOEventDispatch
allocator, handler, params
-
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY
-
-
Constructor Summary
Constructors Constructor Description SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler 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, javax.net.ssl.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected NHttpClientIOTarget
createConnection(IOSession session)
Deprecated.Creates an instance ofDefaultNHttpClientConnection
based on the givenIOSession
.protected NHttpClientIOTarget
createSSLConnection(SSLIOSession sslioSession)
Deprecated.protected SSLIOSession
createSSLIOSession(IOSession session, javax.net.ssl.SSLContext sslContext, SSLSetupHandler sslHandler)
Deprecated.Creates an instance ofSSLIOSession
decorating the givenIOSession
.void
onConnected(NHttpClientIOTarget conn)
Deprecated.-
Methods inherited from class org.apache.http.impl.nio.DefaultClientIOEventDispatch
createByteBufferAllocator, createHttpResponseFactory, onClosed, onException, onInputReady, onOutputReady, onTimeout
-
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
-
-
-
Field Detail
-
sslContext
private final javax.net.ssl.SSLContext sslContext
Deprecated.
-
sslHandler
private final SSLSetupHandler sslHandler
Deprecated.
-
-
Constructor Detail
-
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.SSLContext sslContext, SSLSetupHandler 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 setup handler.params
- HTTP parameters.
-
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.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 Detail
-
createSSLIOSession
protected SSLIOSession createSSLIOSession(IOSession session, javax.net.ssl.SSLContext sslContext, SSLSetupHandler 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 setup handler.- Returns:
- newly created SSL I/O session.
-
createSSLConnection
protected NHttpClientIOTarget createSSLConnection(SSLIOSession sslioSession)
Deprecated.
-
createConnection
protected NHttpClientIOTarget createConnection(IOSession session)
Deprecated.Description copied from class:DefaultClientIOEventDispatch
Creates an instance ofDefaultNHttpClientConnection
based on the givenIOSession
.This method can be overridden in a super class in order to provide a different implementation of the
NHttpClientIOTarget
interface.- Overrides:
createConnection
in classDefaultClientIOEventDispatch
- Parameters:
session
- the underlying I/O session.- Returns:
- newly created HTTP connection.
-
onConnected
public void onConnected(NHttpClientIOTarget conn)
Deprecated.- Overrides:
onConnected
in classDefaultClientIOEventDispatch
-
-