Enum Class VerifiedDownload.Kind

java.lang.Object
java.lang.Enum<VerifiedDownload.Kind>
com.ultikits.ultitools.utils.VerifiedDownload.Kind
All Implemented Interfaces:
Serializable, Comparable<VerifiedDownload.Kind>, java.lang.constant.Constable
Enclosing class:
VerifiedDownload

static enum VerifiedDownload.Kind extends Enum<VerifiedDownload.Kind>
Why a download was or was not accepted.
  • Enum Constant Details

    • OK

      public static final VerifiedDownload.Kind OK
      Verified: the file at VerifiedDownload.Result.path() may be used.
    • SIZE_MISMATCH

      public static final VerifiedDownload.Kind SIZE_MISMATCH
      The body's byte count differs from the metadata's sizeBytes.
    • HASH_MISMATCH

      public static final VerifiedDownload.Kind HASH_MISMATCH
      The body's SHA-256 differs from the metadata's sha256.
    • HEADER_MISMATCH

      public static final VerifiedDownload.Kind HEADER_MISMATCH
      The response header names a different hash than the metadata, although the body matches.
    • MISSING_METADATA

      public static final VerifiedDownload.Kind MISSING_METADATA
      The metadata carries no usable sha256 or sizeBytes.
    • NOT_AVAILABLE

      public static final VerifiedDownload.Kind NOT_AVAILABLE
      The catalogue does not offer this version for download (403, 404).
    • IO_ERROR

      public static final VerifiedDownload.Kind IO_ERROR
      The exchange did not complete, was redirected, or answered another status.
  • Constructor Details

    • Kind

      private Kind()
  • Method Details

    • values

      public static VerifiedDownload.Kind[] 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 VerifiedDownload.Kind 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