类 HttpProxy

java.lang.Object
java.net.Proxy
io.github.wooenrico.http.common.HttpProxy

public class HttpProxy extends Proxy
HttpProxy Object
  • 字段详细资料

    • Proxy_Authorization_Header_Name

      public static final String Proxy_Authorization_Header_Name
      Proxy-Authorization header name
      另请参阅:
  • 构造器详细资料

    • HttpProxy

      public HttpProxy(Proxy.Type type, SocketAddress sa)
      Creates an entry representing a PROXY connection. Certain combinations are illegal. For instance, for types Http, and Socks, a SocketAddress must be provided.

      Use the Proxy.NO_PROXY constant for representing a direct connection.

      参数:
      type - the Type of the proxy
      sa - the SocketAddress for that proxy
      抛出:
      IllegalArgumentException - when the type and the address are incompatible
    • HttpProxy

      public HttpProxy(Proxy.Type type, SocketAddress sa, String username, String password)
      Creates an entry representing a PROXY connection.
      参数:
      type - the Type of the proxy
      sa - the SocketAddress for that proxy
      username - the username
      password - the password
  • 方法详细资料

    • getBasicAuthorization

      public String getBasicAuthorization()
      proxy auth header
      返回:
      header value of Proxy-Authorization