public enum Proxy extends Enum<Proxy>
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes the proxy from the settings of the environment variables if
non according proxy settings are found in the system properties.
|
static void |
initializeAll()
Initializes the proxy for all proxy enumeration elements, e.g. calls
initialize() on each element in this enumeration. |
protected static void |
toProxySettings(EnvironmentProperty aFromEnvProxy,
SystemProperty aToSysHost,
SystemProperty aToSysPort,
Protocol aProtocol)
To proxy settings.
|
static Proxy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Proxy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Proxy HTTP
public static final Proxy HTTPS
public static final Proxy SOCKS
public static final Proxy SOCKS4
public static final Proxy SOCKS5
public static Proxy[] values()
for (Proxy c : Proxy.values()) System.out.println(c);
public static Proxy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void initialize()
public static void initializeAll()
initialize()
on each element in this enumeration.protected static void toProxySettings(EnvironmentProperty aFromEnvProxy, SystemProperty aToSysHost, SystemProperty aToSysPort, Protocol aProtocol)
aFromEnvProxy
- the a from env proxyaToSysHost
- the a to sys hostaToSysPort
- the a to sys portaProtocol
- the a protocolCopyright © 2017. All rights reserved.