public class ProxyUtils extends Object
| Constructor and Description |
|---|
ProxyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
avoidProxy(ProxyServer proxyServer,
Request request)
|
static boolean |
avoidProxy(ProxyServer proxyServer,
String target)
Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to
target host.
|
public static boolean avoidProxy(ProxyServer proxyServer, Request request)
proxyServer - request - public static boolean avoidProxy(ProxyServer proxyServer, String target)
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.proxyServer - target - the hostnamehttp://download.oracle.com/javase/1.4.2/docs/guide/net/properties.htmlCopyright © 2012. All Rights Reserved.