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,
ProxyType proxyType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost() |
java.util.List<java.lang.String> |
getNonProxyHosts() |
int |
getPort() |
ProxyType |
getProxyType() |
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 java.lang.String getHost()
public int getPort()
public int getSecuredPort()
public java.util.List<java.lang.String> getNonProxyHosts()
public Realm getRealm()
public ProxyType getProxyType()
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 © 2018. All Rights Reserved.