This project has retired. For details please refer to its
Attic page.
DownloadErrorPolicy
org.apache.maven.archiva.policies
Interface DownloadErrorPolicy
- All Superinterfaces:
- Policy
- All Known Implementing Classes:
- PropagateErrorsDownloadPolicy, PropagateErrorsOnUpdateDownloadPolicy
public interface DownloadErrorPolicy
- extends Policy
Policy to apply after the download has completed, but before the
resource is made available to the calling client.
Method Summary |
boolean |
applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile,
java.lang.Exception exception,
java.util.Map<java.lang.String,java.lang.Exception> previousExceptions)
Apply the download error policy. |
applyPolicy
boolean applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile,
java.lang.Exception exception,
java.util.Map<java.lang.String,java.lang.Exception> previousExceptions)
throws PolicyConfigurationException
- Apply the download error policy.
- Parameters:
policySetting
- the policy setting.request
- the list of request properties that the policy might use.localFile
- exception
- the exception that triggered the errorpreviousExceptions
- any previously triggered exceptions
- Returns:
- whether to process the exception or not
- Throws:
PolicyConfigurationException
- if the policy is improperly configured