public interface ChecksumPolicyProvider
Modifier and Type | Method and Description |
---|---|
String |
getEffectiveChecksumPolicy(org.eclipse.aether.RepositorySystemSession session,
String policy1,
String policy2)
Returns the least strict policy.
|
ChecksumPolicy |
newChecksumPolicy(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.repository.RemoteRepository repository,
org.eclipse.aether.transfer.TransferResource resource,
String policy)
Retrieves the checksum policy with the specified identifier for use on the given remote resource.
|
ChecksumPolicy newChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository, org.eclipse.aether.transfer.TransferResource resource, String policy)
session
- The repository system session during which the request is made, must not be null
.repository
- The repository hosting the resource being transferred, must not be null
.resource
- The transfer resource on which the policy will be applied, must not be null
.policy
- The identifier of the policy to apply, must not be null
.null
if checksums should be ignored.String getEffectiveChecksumPolicy(org.eclipse.aether.RepositorySystemSession session, String policy1, String policy2)
session
- The repository system session during which the request is made, must not be null
.policy1
- A policy to compare, must not be null
.policy2
- A policy to compare, must not be null
.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.