public class ProxyOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyOptions.Type
The type of the proxy.
|
| Constructor and Description |
|---|
ProxyOptions(ProxyOptions.Type type,
InetSocketAddress address) |
ProxyOptions(ProxyOptions.Type type,
InetSocketAddress address,
String scheme) |
| Modifier and Type | Method and Description |
|---|---|
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 © 2022. All rights reserved.