Enum Class ProxyPolicy

java.lang.Object
java.lang.Enum<ProxyPolicy>
org.openstreetmap.josm.io.ProxyPolicy
All Implemented Interfaces:
Serializable, Comparable<ProxyPolicy>, Constable

public enum ProxyPolicy extends Enum<ProxyPolicy>
The proxy policy is how JOSM will use proxy information.
Since:
12805 (extracted from ProxyPreferencesPanel)
  • Enum Constant Details

  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static ProxyPolicy[] 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

      public static ProxyPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Replies the policy name, to be stored in proxy preferences.
      Returns:
      the policy unique name
    • fromName

      public static ProxyPolicy fromName(String policyName)
      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