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(org.refcodes.data.EnvironmentProperty aFromEnvProxy,
org.refcodes.data.SystemProperty aToSysHost,
org.refcodes.data.SystemProperty aToSysPort,
org.refcodes.data.Scheme 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(org.refcodes.data.EnvironmentProperty aFromEnvProxy, org.refcodes.data.SystemProperty aToSysHost, org.refcodes.data.SystemProperty aToSysPort, org.refcodes.data.Scheme aProtocol)
aFromEnvProxy
- the from env proxyaToSysHost
- the to sys hostaToSysPort
- the to sys portaProtocol
- the protocolCopyright © 2018. All rights reserved.