public class ProxyManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyManager.ProxyType |
| Constructor and Description |
|---|
ProxyManager() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.httpclient.ProxyHost |
getProxyHost(ProxyManager.ProxyType proxyType)
Get ProxyHost for current proxy settings for a particular proxy type
|
static void |
setProxy(java.lang.String httpProxy,
java.lang.String httpsProxy,
java.lang.String socksProxy)
Set system-wide proxy.
|
public static void setProxy(java.lang.String httpProxy,
java.lang.String httpsProxy,
java.lang.String socksProxy)
httpProxy - proxy for HTTP in form "host" or "host:port".
Use null or empty string for unsetting the proxy.httpsProxy - proxy for HTTPS in form "host" or "host:port".
Use null or empty string for unsetting the proxy.socksProxy - proxy for SOCKS in form "host" or "host:port".
Use null or empty string for unsetting the proxy.public static org.apache.commons.httpclient.ProxyHost getProxyHost(ProxyManager.ProxyType proxyType)
proxyType - proxy type, not null