final class WarnChecksumPolicy extends AbstractChecksumPolicy
RepositoryPolicy.CHECKSUM_POLICY_WARN.logger, resourceKIND_UNOFFICIAL| Constructor and Description |
|---|
WarnChecksumPolicy(LoggerFactory loggerFactory,
TransferResource resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onTransferChecksumFailure(ChecksumFailureException exception)
Signals that (even after a potential retry) checksum validation has failed.
|
onChecksumError, onChecksumMatch, onChecksumMismatch, onNoMoreChecksums, onTransferRetryWarnChecksumPolicy(LoggerFactory loggerFactory, TransferResource resource)
public boolean onTransferChecksumFailure(ChecksumFailureException exception)
ChecksumPolicyexception - 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.