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>
,java.lang.constant.Constable
- Enclosing interface:
- ChecksumPolicy
Enum denoting origin of checksum.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionProvided checksums may be provided byProvidedChecksumsSource
components, ahead of artifact retrieval.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).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. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChecksumPolicy.ChecksumKind
Returns the enum constant of this type with the specified name.static ChecksumPolicy.ChecksumKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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 withGetTask.setChecksum(String, String)
. If no included checksum present,REMOTE_EXTERNAL
is tried for. -
PROVIDED
Provided checksums may be provided byProvidedChecksumsSource
components, ahead of artifact retrieval. If no provided checksum present,REMOTE_INCLUDED
is tried for.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-