Enum DownloadStrategy

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

public enum DownloadStrategy extends Enum<DownloadStrategy>
Used for the download attribute to control whether a resource is downloaded eagerly or lazily. The value progress for the download attribute is a hint to the jnlp client that this jar may contain the class defined by the progress-class attribute (see section 3.7.1). This jar may be considered eager, and may be loaded first by the jnlp client so that the “progress-class” found in it may be used to display the progress of the downloading of all other eager resources.
  • Enum Constant Details

  • Field Details

    • value

      private String value
  • Constructor Details

    • DownloadStrategy

      private DownloadStrategy(String value)
  • Method Details

    • values

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