Class ClientHttpProtocolNegotiationStarter

  • All Implemented Interfaces:
    org.apache.hc.core5.reactor.IOEventHandlerFactory

    @Contract(threading=IMMUTABLE_CONDITIONAL)
    @Internal
    public class ClientHttpProtocolNegotiationStarter
    extends java.lang.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

      Constructors 
      Constructor Description
      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<java.lang.Exception> exceptionCallback)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hc.core5.http.impl.nio.HttpConnectionEventHandler createHandler​(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, java.lang.Object attachment)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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<java.lang.Exception> exceptionCallback)
    • Method Detail

      • createHandler

        public org.apache.hc.core5.http.impl.nio.HttpConnectionEventHandler createHandler​(org.apache.hc.core5.reactor.ProtocolIOSession ioSession,
                                                                                          java.lang.Object attachment)
        Specified by:
        createHandler in interface org.apache.hc.core5.reactor.IOEventHandlerFactory