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,
boolean forceHttp10) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
List<String> |
getNonProxyHosts() |
int |
getPort() |
Realm |
getRealm() |
int |
getSecuredPort() |
boolean |
isForceHttp10() |
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 boolean isForceHttp10()
public Realm getRealm()
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 © 2015. All Rights Reserved.