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