public static enum ProxyPreferencesPanel.ProxyPolicy extends 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 String |
policyName |
Modifier and Type | Method and Description |
---|---|
static ProxyPreferencesPanel.ProxyPolicy |
fromName(String policyName)
Retrieves a proxy policy from its name found in preferences.
|
String |
getName()
Replies the policy name, to be stored in proxy preferences.
|
static ProxyPreferencesPanel.ProxyPolicy |
valueOf(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 String policyName
public static ProxyPreferencesPanel.ProxyPolicy[] values()
for (ProxyPreferencesPanel.ProxyPolicy c : ProxyPreferencesPanel.ProxyPolicy.values()) System.out.println(c);
public static ProxyPreferencesPanel.ProxyPolicy 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 String getName()
public static ProxyPreferencesPanel.ProxyPolicy fromName(String policyName)
policyName
- The policy namenull