public static final class RepositoryLayout.ChecksumLocation extends Object
| Constructor and Description |
|---|
ChecksumLocation(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(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. |
URI |
getLocation()
Gets the location of the checksum file with a remote repository.
|
String |
toString() |
public ChecksumLocation(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(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.public ChecksumAlgorithmFactory getChecksumAlgorithmFactory()
ChecksumAlgorithmFactory that is used to calculate the checksum.null.public URI getLocation()
null.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.