public class HttpProxy extends Proxy
Proxy.Type| Modifier and Type | Method and Description |
|---|---|
PasswordAuthentication |
getAuth()
获取代理验证信息
|
String |
getHost()
获取域名或IP
|
int |
getPort()
获取端口
|
HttpProxy |
setAuth(PasswordAuthentication auth)
设置代理验证信息
|
HttpProxy |
setAuth(String user,
char[] pass)
设置代理验证信息
|
public HttpProxy(String host, int port)
host - 域名或IPport - 端口public String getHost()
public int getPort()
public HttpProxy setAuth(String user, char[] pass)
user - 用户名pass - 密码public HttpProxy setAuth(PasswordAuthentication auth)
auth - PasswordAuthenticationpublic PasswordAuthentication getAuth()
PasswordAuthenticationCopyright © 2024. All rights reserved.