Package org.apache.http.impl.nio
Class SSLServerIOEventDispatch
java.lang.Object
org.apache.http.impl.nio.SSLServerIOEventDispatch
- All Implemented Interfaces:
IOEventDispatch
Deprecated.
Default implementation of
IOEventDispatch interface for SSL
(encrypted) server-side HTTP connections.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NHttpServiceHandlerDeprecated.protected final HttpParamsDeprecated.private static final StringDeprecated.protected final SSLContextDeprecated.protected final SSLIOSessionHandlerDeprecated.Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch
CONNECTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSSLServerIOEventDispatch(NHttpServiceHandler 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.SSLServerIOEventDispatch(NHttpServiceHandler 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 TypeMethodDescriptionvoidDeprecated.Triggered after the given session has been just created.protected ByteBufferAllocatorDeprecated.Creates an instance ofHeapByteBufferAllocatorto be used by HTTP connections for allocatingByteBufferobjects.protected NHttpServerIOTargetcreateConnection(IOSession session) Deprecated.Creates an instance ofDefaultNHttpServerConnectionbased on the givenIOSession.protected HttpRequestFactoryDeprecated.Creates an instance ofDefaultHttpRequestFactoryto be used by HTTP connections for creatingHttpRequestobjects.protected SSLIOSessioncreateSSLIOSession(IOSession session, 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.voidDeprecated.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
-
SSLServerIOEventDispatch
public SSLServerIOEventDispatch(NHttpServiceHandler 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 server protocol handler.sslContext- the SSL context.sslHandler- the SSL handler.params- HTTP parameters.
-
SSLServerIOEventDispatch
public SSLServerIOEventDispatch(NHttpServiceHandler 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 server protocol handler.sslContext- the SSL context.params- HTTP parameters.
-
-
Method Details
-
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.
-
createHttpRequestFactory
Deprecated.Creates an instance ofDefaultHttpRequestFactoryto be used by HTTP connections for creatingHttpRequestobjects.This method can be overridden in a super class in order to provide a different implementation of the
HttpRequestFactoryinterface.- Returns:
- HTTP request factory.
-
createConnection
Deprecated.Creates 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.- 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 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
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
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session has been terminated.- Specified by:
disconnectedin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
inputReady
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session has input pending.- Specified by:
inputReadyin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
outputReady
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
Deprecated.Description copied from interface:IOEventDispatchTriggered when the given session as timed out.- Specified by:
timeoutin interfaceIOEventDispatch- Parameters:
session- the I/O session.
-
SSLServerIOEventDispatch