public class ProxyServer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyServer.Builder |
Constructor and Description |
---|
ProxyServer(String host,
int port,
int securedPort,
Realm realm,
List<String> nonProxyHosts,
ProxyType proxyType) |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
List<String> |
getNonProxyHosts() |
int |
getPort() |
ProxyType |
getProxyType() |
Realm |
getRealm() |
int |
getSecuredPort() |
boolean |
isIgnoredForHost(String hostname)
Checks whether proxy should be used according to nonProxyHosts settings of
it, or we want to go directly to target host.
|
public String getHost()
public int getPort()
public int getSecuredPort()
public Realm getRealm()
public ProxyType getProxyType()
public boolean isIgnoredForHost(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 © 2021. All rights reserved.