Class DefaultClientConnectionOperator

    • Constructor Detail

      • DefaultClientConnectionOperator

        public DefaultClientConnectionOperator​(SchemeRegistry schemes)
        Deprecated.
        Creates a new client connection operator for the given scheme registry.
        Parameters:
        schemes - the scheme registry
        Since:
        4.2
      • DefaultClientConnectionOperator

        public DefaultClientConnectionOperator​(SchemeRegistry schemes,
                                               DnsResolver dnsResolver)
        Deprecated.
        Creates a new client connection operator for the given scheme registry and the given custom DNS lookup mechanism.
        Parameters:
        schemes - the scheme registry
        dnsResolver - the custom DNS lookup mechanism
    • Method Detail

      • openConnection

        public void openConnection​(OperatedClientConnection conn,
                                   HttpHost target,
                                   java.net.InetAddress local,
                                   HttpContext context,
                                   HttpParams params)
                            throws java.io.IOException
        Deprecated.
        Description copied from interface: ClientConnectionOperator
        Opens a connection to the given target host.
        Specified by:
        openConnection in interface ClientConnectionOperator
        Parameters:
        conn - the connection to open
        target - the target host to connect to
        local - the local address to route from, or null for the default
        context - the context for the connection
        params - the parameters for the connection
        Throws:
        java.io.IOException - in case of a problem
      • updateSecureConnection

        public void updateSecureConnection​(OperatedClientConnection conn,
                                           HttpHost target,
                                           HttpContext context,
                                           HttpParams params)
                                    throws java.io.IOException
        Deprecated.
        Description copied from interface: ClientConnectionOperator
        Updates a connection with a layered secure connection. The typical use of this method is to update a tunnelled plain connection (HTTP) to a secure TLS/SSL connection (HTTPS).
        Specified by:
        updateSecureConnection in interface ClientConnectionOperator
        Parameters:
        conn - the open connection to update
        target - the target host for the updated connection. The connection must already be open or tunnelled to the host and port, but the scheme of the target will be used to create a layered connection.
        context - the context for the connection
        params - the parameters for the updated connection
        Throws:
        java.io.IOException - in case of a problem