Class ProxyManager
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.proxy.ProxyManager
-
public class ProxyManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classProxyManager.ProxyManagerHolder
-
Field Summary
Fields Modifier and Type Field Description private static booleanisSystemProxyUnsetprivate static StringPROPERTY_USE_SYSTEM_PROXY
-
Constructor Summary
Constructors Constructor Description ProxyManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyProxy()private static ProxycreateHttpProxy(String httpProxyHost, Integer httpProxyPort)static ProxyManagergetInstance()private static ProxyInfogetProxyFromProgramArgument(String prefix)private ProxyInfogetSystemProxy()private static ProxyInfogetSystemProxyInner()booleanisProxyEnabled()
-
-
-
Field Detail
-
PROPERTY_USE_SYSTEM_PROXY
private static final String PROPERTY_USE_SYSTEM_PROXY
- See Also:
- Constant Field Values
-
isSystemProxyUnset
private static final boolean isSystemProxyUnset
-
-
Method Detail
-
isProxyEnabled
public boolean isProxyEnabled()
-
getInstance
public static ProxyManager getInstance()
-
applyProxy
public void applyProxy()
-
getSystemProxy
private ProxyInfo getSystemProxy()
-
getSystemProxyInner
private static ProxyInfo getSystemProxyInner()
-
-