org.apache.archiva.policies
Interface DownloadPolicy

All Superinterfaces:
Policy
All Known Subinterfaces:
PostDownloadPolicy, PreDownloadPolicy
All Known Implementing Classes:
AbstractUpdatePolicy, CachedFailuresPolicy, ChecksumPolicy, ReleasesPolicy, SnapshotsPolicy

public interface DownloadPolicy
extends Policy

DownloadPolicy

Version:
$Id: DownloadPolicy.java 1171444 2011-09-16 08:34:11Z olamy $

Method Summary
 void applyPolicy(String policySetting, Properties request, File localFile)
          Apply the download policy.
 
Methods inherited from interface org.apache.archiva.policies.Policy
getDefaultOption, getId, getName, getOptions
 

Method Detail

applyPolicy

void applyPolicy(String policySetting,
                 Properties request,
                 File localFile)
                 throws PolicyViolationException,
                        PolicyConfigurationException
Apply the download policy.

Parameters:
policySetting - the policy setting.
request - the list of request properties that the policy might use.
localFile -
Throws:
PolicyViolationException - if the policy has been violated.
PolicyConfigurationException


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