Class ClientHttpProtocolNegotiationStarter
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ClientHttpProtocolNegotiationStarter
- All Implemented Interfaces:
org.apache.hc.core5.reactor.IOEventHandlerFactory
@Contract(threading=IMMUTABLE_CONDITIONAL)
@Internal
public class ClientHttpProtocolNegotiationStarter
extends Object
implements org.apache.hc.core5.reactor.IOEventHandlerFactory
Client 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
-
Constructor Summary
ConstructorsConstructorDescriptionClientHttpProtocolNegotiationStarter(org.apache.hc.core5.http.impl.nio.ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy, org.apache.hc.core5.util.Timeout handshakeTimeout, org.apache.hc.core5.function.Callback<Exception> exceptionCallback) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.impl.nio.HttpConnectionEventHandlercreateHandler(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, Object attachment)
-
Constructor Details
-
ClientHttpProtocolNegotiationStarter
public ClientHttpProtocolNegotiationStarter(org.apache.hc.core5.http.impl.nio.ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, HttpVersionPolicy versionPolicy, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy, org.apache.hc.core5.util.Timeout handshakeTimeout, org.apache.hc.core5.function.Callback<Exception> exceptionCallback)
-
-
Method Details
-
createHandler
public org.apache.hc.core5.http.impl.nio.HttpConnectionEventHandler createHandler(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, Object attachment) - Specified by:
createHandlerin interfaceorg.apache.hc.core5.reactor.IOEventHandlerFactory
-