public static final class RepositoryLayout.ChecksumLocation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ChecksumAlgorithmFactory |
checksumAlgorithmFactory |
private java.net.URI |
location |
Constructor and Description |
---|
ChecksumLocation(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory)
Creates a new checksum file descriptor with the specified algorithm and location.
|
Modifier and Type | Method and Description |
---|---|
static RepositoryLayout.ChecksumLocation |
forLocation(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory)
Creates a checksum descriptor for the specified artifact/metadata location and algorithm.
|
ChecksumAlgorithmFactory |
getChecksumAlgorithmFactory()
Gets the
ChecksumAlgorithmFactory that is used to calculate the checksum. |
java.net.URI |
getLocation()
Gets the location of the checksum file with a remote repository.
|
java.lang.String |
toString() |
private static void |
verify(java.net.URI location,
ChecksumAlgorithmFactory checksumAlgorithmFactory) |
private final java.net.URI location
private final ChecksumAlgorithmFactory checksumAlgorithmFactory
public ChecksumLocation(java.net.URI location, ChecksumAlgorithmFactory checksumAlgorithmFactory)
forLocation(URI, ChecksumAlgorithmFactory)
is usually more convenient though.location
- The relative URI to the checksum file within a repository, must not be null
.checksumAlgorithmFactory
- The checksum type used to calculate the checksum, must not be null
.public static RepositoryLayout.ChecksumLocation forLocation(java.net.URI location, ChecksumAlgorithmFactory checksumAlgorithmFactory)
ChecksumAlgorithmFactory.getFileExtension()
.location
- The relative URI to the artifact/metadata whose checksum file is being
obtained, must not be
null
and must not have a query or fragment part.checksumAlgorithmFactory
- The algorithm used to calculate the checksum, must not be null
.null
.private static void verify(java.net.URI location, ChecksumAlgorithmFactory checksumAlgorithmFactory)
public ChecksumAlgorithmFactory getChecksumAlgorithmFactory()
ChecksumAlgorithmFactory
that is used to calculate the checksum.null
.public java.net.URI getLocation()
null
.public java.lang.String toString()
toString
in class java.lang.Object