Class ServerHttpProtocolNegotiationStarter
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ServerHttpProtocolNegotiationStarter
- All Implemented Interfaces:
IOEventHandlerFactory
@Contract(threading=IMMUTABLE_CONDITIONAL)
@Internal
public class ServerHttpProtocolNegotiationStarter
extends Object
implements IOEventHandlerFactory
Server I/O event starter that prepares I/O sessions for an initial protocol handshake.
This class may return a different
IOEventHandler
implementation based on the current HTTP version policy.- Since:
- 5.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Timeoutprivate final ServerHttp1StreamDuplexerFactoryprivate final ServerH2StreamMultiplexerFactoryprivate final TlsStrategyprivate final HttpVersionPolicy -
Constructor Summary
ConstructorsConstructorDescriptionServerHttpProtocolNegotiationStarter(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout) -
Method Summary
-
Field Details
-
http1StreamHandlerFactory
-
http2StreamHandlerFactory
-
versionPolicy
-
tlsStrategy
-
handshakeTimeout
-
-
Constructor Details
-
ServerHttpProtocolNegotiationStarter
public ServerHttpProtocolNegotiationStarter(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout)
-
-
Method Details
-
createHandler
- Specified by:
createHandlerin interfaceIOEventHandlerFactory
-