Package org.eclipse.aether.internal.impl
Class WarnChecksumPolicy
java.lang.Object
org.eclipse.aether.internal.impl.AbstractChecksumPolicy
org.eclipse.aether.internal.impl.WarnChecksumPolicy
- All Implemented Interfaces:
ChecksumPolicy
Implements
RepositoryPolicy.CHECKSUM_POLICY_WARN
.-
Field Summary
Fields inherited from class org.eclipse.aether.internal.impl.AbstractChecksumPolicy
logger, resource
Fields inherited from interface org.eclipse.aether.spi.connector.checksum.ChecksumPolicy
KIND_UNOFFICIAL
-
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
-
WarnChecksumPolicy
WarnChecksumPolicy(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:
exception
- The exception that was thrown from a prior call toChecksumPolicy.onChecksumMismatch(String, int, ChecksumFailureException)
,ChecksumPolicy.onChecksumError(String, int, ChecksumFailureException)
orChecksumPolicy.onNoMoreChecksums()
.- Returns:
true
to accept the download nevertheless and let artifact resolution succeed,false
to reject the transferred file as unusable.
-