org.apache.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: DownloadErrorPolicy.java 1171444 2011-09-16 08:34:11Z olamy $

Method Summary
 boolean applyPolicy(String policySetting, Properties request, File localFile, Exception exception, Map<String,Exception> previousExceptions)
          Apply the download error policy.
 
Methods inherited from interface org.apache.archiva.policies.Policy
getDefaultOption, getId, getName, getOptions
 

Method Detail

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 error
previousExceptions - any previously triggered exceptions
Returns:
whether to process the exception or not
Throws:
PolicyConfigurationException - if the policy is improperly configured


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.