|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectesmska.transfer.ProxyManager
public class ProxyManager
Sets system-wide internet proxies.
Nested Class Summary | |
---|---|
static class |
ProxyManager.ProxyType
|
Constructor Summary | |
---|---|
ProxyManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyManager()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |