|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.util.ProxyUtils
public class ProxyUtils
Utilities for Proxy handling.
Constructor Summary | |
---|---|
ProxyUtils()
|
Method Summary | |
---|---|
static boolean |
avoidProxy(ProxyServer proxyServer,
Request request)
avoidProxy(ProxyServer,String) |
static boolean |
avoidProxy(ProxyServer proxyServer,
java.lang.String target)
Checks whether proxy should be used according to nonProxyHosts settings of it, or we want to go directly to target host. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyUtils()
Method Detail |
---|
public static boolean avoidProxy(ProxyServer proxyServer, Request request)
avoidProxy(ProxyServer,String)
proxyServer
- request
-
public static boolean avoidProxy(ProxyServer proxyServer, java.lang.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 hostname
http://download.oracle.com/javase/1.4.2/docs/guide/net/properties.html
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |