|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.policies.CachedFailuresPolicy
public class CachedFailuresPolicy
PreDownloadPolicy
to check if the requested url has failed before.
Field Summary | |
---|---|
static java.lang.String |
NO
The NO policy setting means that the the existence of old failures is not checked. |
static java.lang.String |
YES
The YES policy setting means that the existence of old failures is checked, and will prevent the request from being performed against the remote repo. |
Constructor Summary | |
---|---|
CachedFailuresPolicy()
|
Method Summary | |
---|---|
void |
applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile)
Apply the download policy. |
java.lang.String |
getDefaultOption()
Get the default option for this policy. |
java.lang.String |
getId()
Get the id for this policy. |
java.lang.String |
getName()
Get the display name for this policy. |
java.util.List<java.lang.String> |
getOptions()
Get the list of options for this policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NO
public static final java.lang.String YES
Constructor Detail |
---|
public CachedFailuresPolicy()
Method Detail |
---|
public void applyPolicy(java.lang.String policySetting, java.util.Properties request, java.io.File localFile) throws PolicyViolationException, PolicyConfigurationException
DownloadPolicy
applyPolicy
in interface DownloadPolicy
policySetting
- the policy setting.request
- the list of request properties that the policy might use.
PolicyViolationException
- if the policy has been violated.
PolicyConfigurationException
public java.lang.String getDefaultOption()
Policy
getDefaultOption
in interface Policy
public java.lang.String getId()
Policy
getId
in interface Policy
public java.lang.String getName()
Policy
getName
in interface Policy
public java.util.List<java.lang.String> getOptions()
Policy
getOptions
in interface Policy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |