public class HttpProxy extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
hostAddress |
String |
password |
int |
port |
Proxy.Type |
type |
String |
user |
| Constructor and Description |
|---|
HttpProxy(String hostAddress,
int port) |
HttpProxy(String hostAddress,
int port,
String user,
String password,
Proxy.Type type) |
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
authenticator() |
Proxy |
proxy() |
public final String hostAddress
public final int port
public final String user
public final String password
public final Proxy.Type type
public HttpProxy(String hostAddress, int port, String user, String password, Proxy.Type type)
hostAddress - 服务器域名或IP,比如aoju.org, 192.168.1.1port - 端口user - 用户名,无则填nullpassword - 用户密码,无则填nulltype - 代理类型public HttpProxy(String hostAddress, int port)
public Proxy proxy()
public Authenticator authenticator()
Copyright © 2020. All rights reserved.