public static enum ChecksumPolicy.ChecksumKind extends Enum<ChecksumPolicy.ChecksumKind>
Enum Constant and Description |
---|
PROVIDED
Provided checksums may be provided by
ProvidedChecksumsSource components, ahead of artifact
retrieval. |
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).
|
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.
|
Modifier and Type | Method and Description |
---|---|
static ChecksumPolicy.ChecksumKind |
valueOf(String name)
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.
|
public static final ChecksumPolicy.ChecksumKind REMOTE_EXTERNAL
ChecksumPolicy.onNoMoreChecksums()
method is invoked that (by default) fails retrieval.public static final ChecksumPolicy.ChecksumKind REMOTE_INCLUDED
GetTask.setChecksum(String, String)
. If no included
checksum present, REMOTE_EXTERNAL
is tried for.public static final ChecksumPolicy.ChecksumKind PROVIDED
ProvidedChecksumsSource
components, ahead of artifact
retrieval. If no provided checksum present, REMOTE_INCLUDED
is tried for.public static ChecksumPolicy.ChecksumKind[] values()
for (ChecksumPolicy.ChecksumKind c : ChecksumPolicy.ChecksumKind.values()) System.out.println(c);
public static ChecksumPolicy.ChecksumKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2022 The Apache Software Foundation. All rights reserved.