public class ProxyServer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyServer.Builder |
Constructor and Description |
---|
ProxyServer(java.lang.String host,
int port,
int securedPort,
Realm realm,
java.util.List<java.lang.String> nonProxyHosts) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost() |
java.util.List<java.lang.String> |
getNonProxyHosts() |
int |
getPort() |
Realm |
getRealm() |
int |
getSecuredPort() |
boolean |
isIgnoredForHost(java.lang.String hostname)
Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to target host.
|
public ProxyServer(java.lang.String host, int port, int securedPort, Realm realm, java.util.List<java.lang.String> nonProxyHosts)
public java.lang.String getHost()
public int getPort()
public int getSecuredPort()
public java.util.List<java.lang.String> getNonProxyHosts()
public Realm getRealm()
public boolean isIgnoredForHost(java.lang.String hostname)
null
proxy is passed in, this method
returns true -- since there is NO proxy, we should avoid to use it. Simple hostname pattern matching using "*" are supported, but only as prefixes.hostname
- the hostnameCopyright © 2017. All Rights Reserved.