Package org.openstreetmap.josm.io
Enum Class ProxyPolicy
- All Implemented Interfaces:
Serializable,Comparable<ProxyPolicy>,Constable
The proxy policy is how JOSM will use proxy information.
- Since:
- 12805 (extracted from
ProxyPreferencesPanel)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo proxy: JOSM will access Internet resources directlyUse HTTP proxy: JOSM will use the given HTTP proxy, configured manuallyUse HTTP proxy: JOSM will use the given SOCKS proxyUse system settings: JOSM will use system proxy settings -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyPolicyRetrieves a proxy policy from its name found in preferences.getName()Replies the policy name, to be stored in proxy preferences.static ProxyPolicyReturns the enum constant of this class with the specified name.static ProxyPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_PROXY
No proxy: JOSM will access Internet resources directly -
USE_SYSTEM_SETTINGS
Use system settings: JOSM will use system proxy settings -
USE_HTTP_PROXY
Use HTTP proxy: JOSM will use the given HTTP proxy, configured manually -
USE_SOCKS_PROXY
Use HTTP proxy: JOSM will use the given SOCKS proxy
-
-
Field Details
-
policyName
-
-
Constructor Details
-
ProxyPolicy
-
-
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
-
getName
Replies the policy name, to be stored in proxy preferences.- Returns:
- the policy unique name
-
fromName
Retrieves a proxy policy from its name found in preferences.- Parameters:
policyName- The policy name- Returns:
- The proxy policy matching the given name, or
null
-