Package org.eclipse.aether.internal.impl
Class FailChecksumPolicy
java.lang.Object
org.eclipse.aether.internal.impl.AbstractChecksumPolicy
org.eclipse.aether.internal.impl.FailChecksumPolicy
- All Implemented Interfaces:
ChecksumPolicy
Implements
RepositoryPolicy.CHECKSUM_POLICY_FAIL
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.spi.connector.checksum.ChecksumPolicy
ChecksumPolicy.ChecksumKind
-
Field Summary
Fields inherited from class org.eclipse.aether.internal.impl.AbstractChecksumPolicy
logger, resource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Signals that (even after a potential retry) checksum validation has failed.Methods inherited from class org.eclipse.aether.internal.impl.AbstractChecksumPolicy
onChecksumError, onChecksumMatch, onChecksumMismatch, onNoMoreChecksums, onTransferRetry
-
Constructor Details
-
FailChecksumPolicy
FailChecksumPolicy(TransferResource resource)
-
-
Method Details
-
onTransferChecksumFailure
Description copied from interface:ChecksumPolicy
Signals that (even after a potential retry) checksum validation has failed. A policy could opt to merely log this issue or insist on rejecting the downloaded file as unusable.- Parameters:
error
- The exception that was thrown from a prior call toChecksumPolicy.onChecksumMismatch(String, ChecksumKind, ChecksumFailureException)
,ChecksumPolicy.onChecksumError(String, ChecksumKind, ChecksumFailureException)
orChecksumPolicy.onNoMoreChecksums()
.- Returns:
true
to accept the download nevertheless and let artifact resolution succeed,false
to reject the transferred file as unusable.
-