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
final class WarnChecksumPolicy extends AbstractChecksumPolicy
ImplementsRepositoryPolicy.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 Constructor Description WarnChecksumPolicy(TransferResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onTransferChecksumFailure(ChecksumFailureException exception)
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 Detail
-
WarnChecksumPolicy
WarnChecksumPolicy(TransferResource resource)
-
-
Method Detail
-
onTransferChecksumFailure
public boolean onTransferChecksumFailure(ChecksumFailureException exception)
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.
-
-