类 HttpProxy


  • public class HttpProxy
    extends Proxy
    HTTP代理封装 支持用户名和密码
    作者:
    frankcl
    • 字段详细资料

      • username

        public String username
      • password

        public String password
    • 构造器详细资料

      • HttpProxy

        public HttpProxy​(Proxy.Type type,
                         SocketAddress socketAddress)
        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
        socketAddress - the SocketAddress for that proxy
        抛出:
        IllegalArgumentException - when the type and the address are incompatible