Enum Class 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>,- Constable
- Enclosing interface:
- ChecksumPolicy
Enum denoting origin of checksum.
- Since:
- 1.8.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionProvided checksums may be provided byProvidedChecksumsSourcecomponents, 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 SummaryModifier and TypeMethodDescriptionstatic ChecksumPolicy.ChecksumKindReturns the enum constant of this class with the specified name.static ChecksumPolicy.ChecksumKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
REMOTE_EXTERNALRemote 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_INCLUDEDIncluded 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_EXTERNALis tried for.
- 
PROVIDEDProvided checksums may be provided byProvidedChecksumsSourcecomponents, ahead of artifact retrieval. If no provided checksum present,REMOTE_INCLUDEDis tried for.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-