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.
- Version:
- $Id$
applyPolicy
boolean applyPolicy(String policySetting,
Properties request,
File localFile,
Exception exception,
Map<String,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
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.