Package com.qiniu.http
Class ProxyConfiguration
- java.lang.Object
-
- com.qiniu.http.ProxyConfiguration
-
public final class ProxyConfiguration extends java.lang.Objecthttp 代理
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringhostAddressjava.lang.Stringpasswordintportjava.net.Proxy.Typetypejava.lang.Stringuser
-
Constructor Summary
Constructors Constructor Description ProxyConfiguration(java.lang.String hostAddress, int port)ProxyConfiguration(java.lang.String hostAddress, int port, java.lang.String user, java.lang.String password, java.net.Proxy.Type type)
-
-
-
Constructor Detail
-
ProxyConfiguration
public ProxyConfiguration(java.lang.String hostAddress, int port, java.lang.String user, java.lang.String password, java.net.Proxy.Type type)- Parameters:
hostAddress- 服务器域名或IP,比如proxy.com, 192.168.1.1port- 端口user- 用户名,无则填nullpassword- 用户密码,无则填nulltype- type
-
ProxyConfiguration
public ProxyConfiguration(java.lang.String hostAddress, int port)
-
-