public class ProxyOptions extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ProxyOptions.Type
The type of the proxy.
|
| 构造器和说明 |
|---|
ProxyOptions(ProxyOptions.Type type,
InetSocketAddress address) |
ProxyOptions(ProxyOptions.Type type,
InetSocketAddress address,
String scheme) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ProxyOptions |
fromConfiguration(Configuration configuration) |
static ProxyOptions |
fromConfiguration(Configuration configuration,
boolean createUnresolved) |
InetSocketAddress |
getAddress()
The address of the proxy.
|
String |
getNonProxyHosts()
The hosts that bypass the proxy.
|
String |
getPassword()
The proxy password.
|
String |
getScheme()
The scheme of the proxy host : http or https.
|
ProxyOptions.Type |
getType()
The type of the proxy.
|
String |
getUsername()
The proxy user name.
|
ProxyOptions |
setCredentials(String username,
String password) |
ProxyOptions |
setNonProxyHosts(String nonProxyHosts) |
public ProxyOptions(ProxyOptions.Type type, InetSocketAddress address)
public ProxyOptions(ProxyOptions.Type type, InetSocketAddress address, String scheme)
public ProxyOptions setCredentials(String username, String password)
public ProxyOptions setNonProxyHosts(String nonProxyHosts)
public InetSocketAddress getAddress()
public ProxyOptions.Type getType()
public String getScheme()
public String getUsername()
public String getPassword()
public String getNonProxyHosts()
public static ProxyOptions fromConfiguration(Configuration configuration)
public static ProxyOptions fromConfiguration(Configuration configuration, boolean createUnresolved)
Copyright © 2023. All rights reserved.