|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy
public class PropagateErrorsOnUpdateDownloadPolicy
PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
Field Summary | |
---|---|
static java.lang.String |
ALWAYS
Signifies any error should cause a failure whether the artifact is already present or not. |
static java.lang.String |
NOT_PRESENT
Signifies any error should cause a failure only if the artifact is not already present. |
Constructor Summary | |
---|---|
PropagateErrorsOnUpdateDownloadPolicy()
|
Method Summary | |
---|---|
boolean |
applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile,
java.lang.Exception exception,
java.util.Map<java.lang.String,java.lang.Exception> previousExceptions)
Apply the download error 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 ALWAYS
public static final java.lang.String NOT_PRESENT
Constructor Detail |
---|
public PropagateErrorsOnUpdateDownloadPolicy()
Method Detail |
---|
public boolean applyPolicy(java.lang.String policySetting, java.util.Properties request, java.io.File localFile, java.lang.Exception exception, java.util.Map<java.lang.String,java.lang.Exception> previousExceptions) throws PolicyConfigurationException
DownloadErrorPolicy
applyPolicy
in interface DownloadErrorPolicy
policySetting
- the policy setting.request
- the list of request properties that the policy might use.exception
- the exception that triggered the errorpreviousExceptions
- any previously triggered exceptions
PolicyConfigurationException
- if the policy is improperly configuredpublic 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 |