Enum ChecksumPolicy.ChecksumKind

java.lang.Object
java.lang.Enum<ChecksumPolicy.ChecksumKind>
org.eclipse.aether.spi.connector.checksum.ChecksumPolicy.ChecksumKind
All Implemented Interfaces:
Serializable, Comparable<ChecksumPolicy.ChecksumKind>
Enclosing interface:
ChecksumPolicy

public static enum ChecksumPolicy.ChecksumKind extends Enum<ChecksumPolicy.ChecksumKind>
Enum denoting origin of checksum.
Since:
1.8.0
  • Enum Constant Details

    • REMOTE_EXTERNAL

      public static final ChecksumPolicy.ChecksumKind REMOTE_EXTERNAL
      Remote external kind of checksum are retrieved from remote doing extra transport round-trip (usually by getting "file.jar.sha1" for corresponding "file.jar" file). This kind of checksum is part of layout, and was from beginning the "official" (and one and only) checksum used by resolver. If no external checksum present, ChecksumPolicy.onNoMoreChecksums() method is invoked that (by default) fails retrieval.
    • REMOTE_INCLUDED

      public static final ChecksumPolicy.ChecksumKind REMOTE_INCLUDED
      Included checksums may be received from remote repository during the retrieval of the main file, for example from response headers in case of HTTP transport. They may be set with GetTask.setChecksum(String, String). If no included checksum present, REMOTE_EXTERNAL is tried for.
    • PROVIDED

      public static final ChecksumPolicy.ChecksumKind PROVIDED
      Provided checksums may be provided by ProvidedChecksumsSource components, ahead of artifact retrieval. If no provided checksum present, REMOTE_INCLUDED is tried for.
  • Constructor Details

    • ChecksumKind

      private ChecksumKind()
  • Method Details

    • values

      public static ChecksumPolicy.ChecksumKind[] 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 ChecksumPolicy.ChecksumKind 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