Class ConnectMethod

    • Field Detail

      • NAME

        public static final java.lang.String NAME
        Deprecated.
        the name of this method
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConnectMethod

        public ConnectMethod()
        Deprecated.
        use #ConnectMethod(HttpHost); Create a connect method.
        Since:
        3.0
      • ConnectMethod

        public ConnectMethod​(HttpMethod method)
        Deprecated.
        the wrapped method is no longer used Create a connect method wrapping the existing method
        Parameters:
        method - the method to execute after connecting to the server
      • ConnectMethod

        public ConnectMethod​(HostConfiguration targethost)
        Deprecated.
        Create a connect method.
        Since:
        3.0
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Provide the name of this method.
        Specified by:
        getName in interface HttpMethod
        Specified by:
        getName in class HttpMethodBase
        Returns:
        the String "CONNECT"
      • getPath

        public java.lang.String getPath()
        Deprecated.
        Description copied from class: HttpMethodBase
        Gets the path of this HTTP method. Calling this method after the request has been executed will return the actual path, following any redirects automatically handled by this HTTP method.
        Specified by:
        getPath in interface HttpMethod
        Overrides:
        getPath in class HttpMethodBase
        Returns:
        the path to request or "/" if the path is blank.
      • execute

        public int execute​(HttpState state,
                           HttpConnection conn)
                    throws java.io.IOException,
                           HttpException
        Deprecated.
        Execute this method and create a tunneled HttpConnection. If the method is successful (i.e. the status is a 2xx) tunnelCreated() will be called on the connection.
        Specified by:
        execute in interface HttpMethod
        Overrides:
        execute in class HttpMethodBase
        Parameters:
        state - the current http state
        conn - the connection to write to
        Returns:
        the http status code from execution
        Throws:
        HttpException - when an error occurs writing the headers
        java.io.IOException - when an error occurs writing the headers
        See Also:
        HttpConnection.tunnelCreated()