- java.lang.Object
-
- java.lang.Enum<Proxy>
-
- org.refcodes.web.Proxy
-
- All Implemented Interfaces:
Serializable
,Comparable<Proxy>
public enum Proxy extends Enum<Proxy>
The Enum Proxy.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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. callsinitialize()
on each element in this enumeration.protected static void
toProxySettings(org.refcodes.data.EnvironmentVariable 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.
-
-
-
Method Detail
-
values
public static Proxy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Proxy c : Proxy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Proxy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.data.EnvironmentVariable aFromEnvProxy, org.refcodes.data.SystemProperty aToSysHost, org.refcodes.data.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
-
-