Package org.apache.http.impl.nio.ssl
Class SSLServerIOEventDispatch
java.lang.Object
org.apache.http.impl.nio.reactor.AbstractIODispatch<NHttpServerIOTarget>
org.apache.http.impl.nio.DefaultServerIOEventDispatch
org.apache.http.impl.nio.ssl.SSLServerIOEventDispatch
- All Implemented Interfaces:
IOEventDispatch
Deprecated.
Default implementation of
IOEventDispatch
interface for SSL (encrypted) server-side HTTP connections.- Since:
- 4.1
-
Field Summary
Fields inherited from class org.apache.http.impl.nio.DefaultServerIOEventDispatch
allocator, handler, paramsFields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSSLServerIOEventDispatch(NHttpServiceHandler handler, SSLContext sslContext, SSLSetupHandler 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 givenSSLContext.SSLServerIOEventDispatch(NHttpServiceHandler handler, 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 givenSSLContext. -
Method Summary
Modifier and TypeMethodDescriptionprotected NHttpServerIOTargetcreateConnection(IOSession session) Deprecated.Creates an instance ofDefaultNHttpServerConnectionbased on the givenIOSession.protected NHttpServerIOTargetcreateSSLConnection(SSLIOSession sslioSession) Deprecated.protected SSLIOSessioncreateSSLIOSession(IOSession session, SSLContext sslContext, SSLSetupHandler sslHandler) Deprecated.Creates an instance ofSSLIOSessiondecorating the givenIOSession.voidDeprecated.Methods inherited from class org.apache.http.impl.nio.DefaultServerIOEventDispatch
createByteBufferAllocator, createHttpRequestFactory, onClosed, onException, onInputReady, onOutputReady, onTimeoutMethods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch
connected, disconnected, inputReady, outputReady, timeout
-
Constructor Details
-
SSLServerIOEventDispatch
public SSLServerIOEventDispatch(NHttpServiceHandler handler, SSLContext sslContext, SSLSetupHandler 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 givenSSLContext. This I/O dispatcher will transparently handle SSL protocol aspects for HTTP connections.- Parameters:
handler- the server protocol handler.sslContext- the SSL context.sslHandler- the SSL setup handler.params- HTTP parameters.
-
SSLServerIOEventDispatch
public SSLServerIOEventDispatch(NHttpServiceHandler handler, 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 givenSSLContext. This I/O dispatcher will transparently handle SSL protocol aspects for HTTP connections.- Parameters:
handler- the server protocol handler.sslContext- the SSL context.params- HTTP parameters.
-
-
Method Details
-
createSSLIOSession
protected SSLIOSession createSSLIOSession(IOSession session, SSLContext sslContext, SSLSetupHandler 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 setup handler.- Returns:
- newly created SSL I/O session.
-
createSSLConnection
Deprecated. -
createConnection
Deprecated.Description copied from class:DefaultServerIOEventDispatchCreates an instance ofDefaultNHttpServerConnectionbased on the givenIOSession.This method can be overridden in a super class in order to provide a different implementation of the
NHttpServerIOTargetinterface.- Overrides:
createConnectionin classDefaultServerIOEventDispatch- Parameters:
session- the underlying I/O session.- Returns:
- newly created HTTP connection.
-
onConnected
Deprecated.- Overrides:
onConnectedin classDefaultServerIOEventDispatch
-
DefaultHttpServerIODispatch