- All Implemented Interfaces:
Serializable
,Comparable<Proxy>
,Constable
The Enum Proxy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the proxy from the settings of the environment variables if non according proxy settings are found in the system properties.static void
Initializes the proxy for all proxy enumeration elements, e.g. callsinitialize()
on each element in this enumeration.protected static void
toProxySettings
(org.refcodes.runtime.EnvironmentVariable aFromEnvProxy, org.refcodes.runtime.SystemProperty aToSysHost, org.refcodes.runtime.SystemProperty aToSysPort, org.refcodes.data.Scheme aProtocol) To proxy settings.static Proxy
Returns the enum constant of this class with the specified name.static Proxy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HTTP
-
HTTPS
-
SOCKS
-
SOCKS4
-
SOCKS5
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
initialize
public void initialize()Initializes the proxy from the settings of the environment variables if non according proxy settings are found in the system properties. -
initializeAll
public static void initializeAll()Initializes the proxy for all proxy enumeration elements, e.g. callsinitialize()
on each element in this enumeration. -
toProxySettings
protected static void toProxySettings(org.refcodes.runtime.EnvironmentVariable aFromEnvProxy, org.refcodes.runtime.SystemProperty aToSysHost, org.refcodes.runtime.SystemProperty aToSysPort, org.refcodes.data.Scheme aProtocol) To proxy settings.- Parameters:
aFromEnvProxy
- the from env proxyaToSysHost
- the to sys hostaToSysPort
- the to sys portaProtocol
- the protocol
-