java.lang.Object
java.lang.Enum<UpdatePolicy>
net.adoptopenjdk.icedteaweb.jnlp.element.update.UpdatePolicy
All Implemented Interfaces:
Serializable, Comparable<UpdatePolicy>, java.lang.constant.Constable

public enum UpdatePolicy extends Enum<UpdatePolicy>
The policy attribute indicates the preference for how the JNLP Client should handle an application update when it is known an update is available before the application is launched, and can have one of the following three values: "always", "prompt-update", and "prompt-run".

  • Enum Constant Details

    • ALWAYS

      public static final UpdatePolicy ALWAYS
      A value of "always" (default) means to always download updates without any prompt.
    • PROMPT_UPDATE

      public static final UpdatePolicy PROMPT_UPDATE
      A value of "prompt-update" means to ask the user if he/she wants to download and run the updated version, or launch the cached version.
    • PROMPT_RUN

      public static final UpdatePolicy PROMPT_RUN
      A value of "prompt-run" means to ask the user if he/she wants to download and run the updated version, or cancel and abort running the application.
  • Method Details

    • values

      public static UpdatePolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static UpdatePolicy 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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      The attribute value name as used in the JSR-56 specification or the Parser.
      Returns:
      the attribute value name