Package org.apache.http.impl.nio
Class SSLClientIOEventDispatch
- java.lang.Object
-
- org.apache.http.impl.nio.SSLClientIOEventDispatch
-
- All Implemented Interfaces:
IOEventDispatch
@Deprecated public class SSLClientIOEventDispatch extends java.lang.Object implements IOEventDispatch
Deprecated.(4.2) useSSLClientIOEventDispatchDefault implementation ofIOEventDispatchinterface for SSL (encrypted) client-side HTTP connections.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected NHttpClientHandlerhandlerDeprecated.protected HttpParamsparamsDeprecated.private static java.lang.StringSSL_SESSIONDeprecated.protected javax.net.ssl.SSLContextsslcontextDeprecated.protected SSLIOSessionHandlersslHandlerDeprecated.-
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, 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, 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 voidconnected(IOSession session)Deprecated.Triggered after the given session has been just created.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 given SSLIOSession.protected HttpResponseFactorycreateHttpResponseFactory()Deprecated.Creates an instance ofDefaultHttpResponseFactoryto be used by HTTP connections for creatingHttpResponseobjects.protected SSLIOSessioncreateSSLIOSession(IOSession session, javax.net.ssl.SSLContext sslContext, SSLIOSessionHandler sslHandler)Deprecated.Creates an instance ofSSLIOSessiondecorating the givenIOSession.voiddisconnected(IOSession session)Deprecated.Triggered when the given session has been terminated.voidinputReady(IOSession session)Deprecated.Triggered when the given session has input pending.voidoutputReady(IOSession session)Deprecated.Triggered when the given session is ready for output.voidtimeout(IOSession session)Deprecated.Triggered when the given session as timed out.
-
-
-
Field Detail
-
SSL_SESSION
private static final java.lang.String SSL_SESSION
Deprecated.- See Also:
- Constant Field Values
-
handler
protected final NHttpClientHandler handler
Deprecated.
-
sslcontext
protected final javax.net.ssl.SSLContext sslcontext
Deprecated.
-
sslHandler
protected final SSLIOSessionHandler sslHandler
Deprecated.
-
params
protected final HttpParams params
Deprecated.
-
-
Constructor Detail
-
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(NHttpClientHandler handler, javax.net.ssl.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, 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
-
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 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 given SSLIOSession.This method can be overridden in a super class in order to provide a different implementation of the
NHttpClientIOTargetinterface.- Parameters:
session- the underlying SSL I/O session.- Returns:
- newly created HTTP connection.
-
createSSLIOSession
protected SSLIOSession createSSLIOSession(IOSession session, javax.net.ssl.SSLContext sslContext, SSLIOSessionHandler sslHandler)
Deprecated.Creates an instance ofSSLIOSessiondecorating 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
public void connected(IOSession session)
Deprecated.Description copied from interface:IOEventDispatchTriggered after the given session has been just created.- Specified by:
connectedin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
disconnected
public void disconnected(IOSession session)
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session has been terminated.- Specified by:
disconnectedin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
inputReady
public void inputReady(IOSession session)
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session has input pending.- Specified by:
inputReadyin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
outputReady
public void outputReady(IOSession session)
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session is ready for output.- Specified by:
outputReadyin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
timeout
public void timeout(IOSession session)
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session as timed out.- Specified by:
timeoutin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
-