public class ProxyConfiguration extends Object
| Name | Default | Description |
host |
REQUIRED | The proxy server host name or ip address. |
port |
scheme default | The proxy server port. If the port is not set then the scheme default port is used. |
scheme |
http | The proxy server URI scheme. HTTP and HTTPS schemas are permitted. By default HTTP scheme is used. |
auth |
(none) |
The proxy server AuthConfiguration BASIC authentication credentials.
If they are not set then no credentials will be passed to the server.
|
nonProxyHosts |
(none) | List of patterns of hosts that should be reached without proxy. The patterns may contain symbol '*' as a wildcard. If a host matches one of the patterns it will be reached through a direct connection. |
| Constructor and Description |
|---|
ProxyConfiguration() |
ProxyConfiguration(String host) |
ProxyConfiguration(String host,
int port) |
ProxyConfiguration(String host,
int port,
String scheme,
AuthConfiguration auth) |
| Modifier and Type | Method and Description |
|---|---|
AuthConfiguration |
getAuth() |
String |
getHost() |
List<String> |
getNonProxyHosts() |
Integer |
getPort() |
String |
getScheme() |
void |
setAuth(AuthConfiguration auth) |
void |
setHost(String host) |
void |
setNonProxyHosts(List<String> nonProxyHosts) |
void |
setPort(Integer port) |
void |
setScheme(String scheme) |
public ProxyConfiguration()
public ProxyConfiguration(@NotNull
String host)
public ProxyConfiguration(@NotNull
String host,
int port)
public ProxyConfiguration(@NotNull
String host,
int port,
String scheme,
AuthConfiguration auth)
public String getHost()
public void setHost(String host)
public Integer getPort()
public void setPort(Integer port)
public String getScheme()
public void setScheme(String scheme)
public AuthConfiguration getAuth()
public void setAuth(AuthConfiguration auth)
Copyright © 2017. All rights reserved.