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 Timeout
private final ServerHttp1StreamDuplexerFactory
private final ServerH2StreamMultiplexerFactory
private final TlsStrategy
private 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:
createHandler
in interfaceIOEventHandlerFactory
-