This project has retired. For details please refer to its Attic page.
DownloadPolicy

org.apache.maven.archiva.policies
Interface DownloadPolicy

Package class diagram package DownloadPolicy
All Superinterfaces:
Policy
All Known Subinterfaces:
PostDownloadPolicy, PreDownloadPolicy
All Known Implementing Classes:
AbstractUpdatePolicy, CachedFailuresPolicy, ChecksumPolicy, ReleasesPolicy, SnapshotsPolicy

public interface DownloadPolicy
extends Policy

DownloadPolicy


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

Method Detail

applyPolicy

void applyPolicy(java.lang.String policySetting,
                 java.util.Properties request,
                 java.io.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