public static enum ProxyPreferencesPanel.ProxyPolicy extends java.lang.Enum<ProxyPreferencesPanel.ProxyPolicy>
Enum Constant and Description |
---|
NO_PROXY
No proxy: JOSM will access Internet resources directly
|
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
|
USE_SYSTEM_SETTINGS
Use system settings: JOSM will use system proxy settings
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyName |
Modifier and Type | Method and Description |
---|---|
static ProxyPreferencesPanel.ProxyPolicy |
fromName(java.lang.String policyName)
Retrieves a proxy policy from its name found in preferences.
|
java.lang.String |
getName()
Replies the policy name, to be stored in proxy preferences.
|
static ProxyPreferencesPanel.ProxyPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProxyPreferencesPanel.ProxyPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyPreferencesPanel.ProxyPolicy NO_PROXY
public static final ProxyPreferencesPanel.ProxyPolicy USE_SYSTEM_SETTINGS
public static final ProxyPreferencesPanel.ProxyPolicy USE_HTTP_PROXY
public static final ProxyPreferencesPanel.ProxyPolicy USE_SOCKS_PROXY
private java.lang.String policyName
public static ProxyPreferencesPanel.ProxyPolicy[] values()
for (ProxyPreferencesPanel.ProxyPolicy c : ProxyPreferencesPanel.ProxyPolicy.values()) System.out.println(c);
public static ProxyPreferencesPanel.ProxyPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public static ProxyPreferencesPanel.ProxyPolicy fromName(java.lang.String policyName)
policyName
- The policy namenull