Class DefaultHttpClientConnectionOperator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect​(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost host, java.net.InetSocketAddress localAddress, org.apache.hc.core5.util.TimeValue connectTimeout, org.apache.hc.core5.http.io.SocketConfig socketConfig, org.apache.hc.core5.http.protocol.HttpContext context)
      Connect the given managed connection to the remote endpoint.
      void connect​(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost endpointHost, org.apache.hc.core5.net.NamedEndpoint endpointName, java.net.InetSocketAddress localAddress, org.apache.hc.core5.util.Timeout connectTimeout, org.apache.hc.core5.http.io.SocketConfig socketConfig, java.lang.Object attachment, org.apache.hc.core5.http.protocol.HttpContext context)
      Connect the given managed connection to the remote endpoint.
      void connect​(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost endpointHost, org.apache.hc.core5.net.NamedEndpoint endpointName, java.nio.file.Path unixDomainSocket, java.net.InetSocketAddress localAddress, org.apache.hc.core5.util.Timeout connectTimeout, org.apache.hc.core5.http.io.SocketConfig socketConfig, java.lang.Object attachment, org.apache.hc.core5.http.protocol.HttpContext context)
      Connect the given managed connection to the remote endpoint.
      protected void onAfterSocketConnect​(org.apache.hc.core5.http.protocol.HttpContext httpContext, org.apache.hc.core5.http.HttpHost endpointHost)  
      protected void onAfterTlsHandshake​(org.apache.hc.core5.http.protocol.HttpContext httpContext, org.apache.hc.core5.http.HttpHost endpointHost)  
      protected void onBeforeSocketConnect​(org.apache.hc.core5.http.protocol.HttpContext httpContext, org.apache.hc.core5.http.HttpHost endpointHost)  
      protected void onBeforeTlsHandshake​(org.apache.hc.core5.http.protocol.HttpContext httpContext, org.apache.hc.core5.http.HttpHost endpointHost)  
      void upgrade​(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.protocol.HttpContext context)
      Upgrades transport security of the given managed connection by using the TLS security protocol.
      void upgrade​(ManagedHttpClientConnection conn, org.apache.hc.core5.http.HttpHost endpointHost, org.apache.hc.core5.net.NamedEndpoint endpointName, java.lang.Object attachment, org.apache.hc.core5.http.protocol.HttpContext context)
      Upgrades transport security of the given managed connection by using the TLS security protocol.
      • Methods inherited from class java.lang.Object

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

      • connect

        public void connect​(ManagedHttpClientConnection conn,
                            org.apache.hc.core5.http.HttpHost host,
                            java.net.InetSocketAddress localAddress,
                            org.apache.hc.core5.util.TimeValue connectTimeout,
                            org.apache.hc.core5.http.io.SocketConfig socketConfig,
                            org.apache.hc.core5.http.protocol.HttpContext context)
                     throws java.io.IOException
        Description copied from interface: HttpClientConnectionOperator
        Connect the given managed connection to the remote endpoint.
        Specified by:
        connect in interface HttpClientConnectionOperator
        Parameters:
        conn - the managed connection.
        host - the address of the opposite endpoint.
        localAddress - the address of the local endpoint.
        connectTimeout - the timeout of the connect operation.
        socketConfig - the socket configuration.
        context - the execution context.
        Throws:
        java.io.IOException
      • connect

        public void connect​(ManagedHttpClientConnection conn,
                            org.apache.hc.core5.http.HttpHost endpointHost,
                            org.apache.hc.core5.net.NamedEndpoint endpointName,
                            java.net.InetSocketAddress localAddress,
                            org.apache.hc.core5.util.Timeout connectTimeout,
                            org.apache.hc.core5.http.io.SocketConfig socketConfig,
                            java.lang.Object attachment,
                            org.apache.hc.core5.http.protocol.HttpContext context)
                     throws java.io.IOException
        Description copied from interface: HttpClientConnectionOperator
        Connect the given managed connection to the remote endpoint.
        Specified by:
        connect in interface HttpClientConnectionOperator
        Parameters:
        conn - the managed connection.
        endpointHost - the address of the remote endpoint.
        endpointName - the name of the remote endpoint, if different from the endpoint host name, null otherwise. Usually taken from the request URU authority.
        localAddress - the address of the local endpoint.
        connectTimeout - the timeout of the connect operation.
        socketConfig - the socket configuration.
        attachment - connect request attachment.
        context - the execution context.
        Throws:
        java.io.IOException
      • connect

        public void connect​(ManagedHttpClientConnection conn,
                            org.apache.hc.core5.http.HttpHost endpointHost,
                            org.apache.hc.core5.net.NamedEndpoint endpointName,
                            java.nio.file.Path unixDomainSocket,
                            java.net.InetSocketAddress localAddress,
                            org.apache.hc.core5.util.Timeout connectTimeout,
                            org.apache.hc.core5.http.io.SocketConfig socketConfig,
                            java.lang.Object attachment,
                            org.apache.hc.core5.http.protocol.HttpContext context)
                     throws java.io.IOException
        Description copied from interface: HttpClientConnectionOperator
        Connect the given managed connection to the remote endpoint.
        Specified by:
        connect in interface HttpClientConnectionOperator
        Parameters:
        conn - the managed connection.
        endpointHost - the address of the remote endpoint.
        endpointName - the name of the remote endpoint, if different from the endpoint host name, null otherwise. Usually taken from the request URU authority.
        unixDomainSocket - the path to the Unix domain socket, or null if none.
        localAddress - the address of the local endpoint.
        connectTimeout - the timeout of the connect operation.
        socketConfig - the socket configuration.
        attachment - connect request attachment.
        context - the execution context.
        Throws:
        java.io.IOException
      • upgrade

        public void upgrade​(ManagedHttpClientConnection conn,
                            org.apache.hc.core5.http.HttpHost host,
                            org.apache.hc.core5.http.protocol.HttpContext context)
                     throws java.io.IOException
        Description copied from interface: HttpClientConnectionOperator
        Upgrades transport security of the given managed connection by using the TLS security protocol.
        Specified by:
        upgrade in interface HttpClientConnectionOperator
        Parameters:
        conn - the managed connection.
        host - the address of the opposite endpoint with TLS security.
        context - the execution context.
        Throws:
        java.io.IOException
      • upgrade

        public void upgrade​(ManagedHttpClientConnection conn,
                            org.apache.hc.core5.http.HttpHost endpointHost,
                            org.apache.hc.core5.net.NamedEndpoint endpointName,
                            java.lang.Object attachment,
                            org.apache.hc.core5.http.protocol.HttpContext context)
                     throws java.io.IOException
        Description copied from interface: HttpClientConnectionOperator
        Upgrades transport security of the given managed connection by using the TLS security protocol.
        Specified by:
        upgrade in interface HttpClientConnectionOperator
        Parameters:
        conn - the managed connection.
        endpointHost - the address of the remote endpoint.
        endpointName - the name of the remote endpoint, if different from the endpoint host name, null otherwise. Usually taken from the request URU authority.
        attachment - connect request attachment.
        context - the execution context.
        Throws:
        java.io.IOException
      • onBeforeSocketConnect

        protected void onBeforeSocketConnect​(org.apache.hc.core5.http.protocol.HttpContext httpContext,
                                             org.apache.hc.core5.http.HttpHost endpointHost)
      • onAfterSocketConnect

        protected void onAfterSocketConnect​(org.apache.hc.core5.http.protocol.HttpContext httpContext,
                                            org.apache.hc.core5.http.HttpHost endpointHost)
      • onBeforeTlsHandshake

        protected void onBeforeTlsHandshake​(org.apache.hc.core5.http.protocol.HttpContext httpContext,
                                            org.apache.hc.core5.http.HttpHost endpointHost)
      • onAfterTlsHandshake

        protected void onAfterTlsHandshake​(org.apache.hc.core5.http.protocol.HttpContext httpContext,
                                           org.apache.hc.core5.http.HttpHost endpointHost)