类 HttpProxy
- java.lang.Object
-
- java.net.Proxy
-
- xin.manong.weapon.base.http.HttpProxy
-
public class HttpProxy extends Proxy
HTTP代理封装 支持用户名和密码- 作者:
- frankcl
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.net.Proxy
Proxy.Type
-
-
构造器概要
构造器 构造器 说明 HttpProxy(Proxy.Type type, SocketAddress socketAddress)Creates an entry representing a PROXY connection.HttpProxy(Proxy.Type type, SocketAddress socketAddress, String username, 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_PROXYconstant for representing a direct connection.- 参数:
type- theTypeof the proxysocketAddress- theSocketAddressfor that proxy- 抛出:
IllegalArgumentException- when the type and the address are incompatible
-
HttpProxy
public HttpProxy(Proxy.Type type, SocketAddress socketAddress, String username, String password)
-
-