public static class ProxyConfig.Proxy extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
String |
host
Proxy host.
|
String |
id
Id of proxy.
|
String |
nonProxyHosts
Excluded hosts string delimited by '|'.
|
String |
password
Password for proxy.
|
int |
port
Proxy port.
|
String |
protocol
Protocol used for proxy.
|
String |
username
User name for proxy.
|
Constructor and Description |
---|
Proxy(String id,
String proxyUrl,
String nonProxyHosts)
Construct a Proxy object out of a proxy url.
|
Proxy(String id,
String protocol,
String host,
int port,
String username,
String password,
String nonProxyHosts)
Construct a Proxy object.
|
Modifier and Type | Method and Description |
---|---|
URI |
getUri()
Get the proxy uri.
|
boolean |
isNonProxyHost(String host)
Check if given host is excluded for proxy.
|
boolean |
isSecure()
Check if the proxy is secure.
|
String |
toString() |
boolean |
useAuthentication()
Check if proxy uses authentication.
|
public final String id
public final String protocol
public final String host
public final int port
public final String username
public final String password
public final String nonProxyHosts
public Proxy(String id, String protocol, String host, int port, String username, String password, String nonProxyHosts)
id
- proxy idprotocol
- proxy protocolhost
- proxy hostport
- proxy portusername
- user name for proxypassword
- password for proxynonProxyHosts
- excluded hosts string delimited by '|'public boolean useAuthentication()
public URI getUri()
public boolean isSecure()
public boolean isNonProxyHost(String host)
host
- host to checkCopyright © 2000–2020 Vaadin Ltd. All rights reserved.