final class FailChecksumPolicy extends AbstractChecksumPolicy
RepositoryPolicy.CHECKSUM_POLICY_FAIL.logger, resourceKIND_UNOFFICIAL| Constructor and Description |
|---|
FailChecksumPolicy(TransferResource resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onTransferChecksumFailure(ChecksumFailureException error)
Signals that (even after a potential retry) checksum validation has failed.
|
onChecksumError, onChecksumMatch, onChecksumMismatch, onNoMoreChecksums, onTransferRetryFailChecksumPolicy(TransferResource resource)
public boolean onTransferChecksumFailure(ChecksumFailureException error)
ChecksumPolicyerror - The exception that was thrown from a prior call to
ChecksumPolicy.onChecksumMismatch(String, int, ChecksumFailureException),
ChecksumPolicy.onChecksumError(String, int, ChecksumFailureException) or ChecksumPolicy.onNoMoreChecksums().true to accept the download nevertheless and let artifact resolution succeed, false to
reject the transferred file as unusable.