|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy
@Service(value="downloadErrorPolicy#propagate-errors-on-update") public class PropagateErrorsOnUpdateDownloadPolicy
PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
Field Summary | |
---|---|
static String |
ALWAYS
Signifies any error should cause a failure whether the artifact is already present or not. |
static String |
NOT_PRESENT
Signifies any error should cause a failure only if the artifact is not already present. |
private List<String> |
options
|
Constructor Summary | |
---|---|
PropagateErrorsOnUpdateDownloadPolicy()
|
Method Summary | |
---|---|
boolean |
applyPolicy(String policySetting,
Properties request,
File localFile,
Exception exception,
Map<String,Exception> previousExceptions)
Apply the download error policy. |
String |
getDefaultOption()
Get the default option for this policy. |
String |
getId()
Get the id for this policy. |
String |
getName()
Get the display name for this policy. |
List<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 String ALWAYS
public static final String NOT_PRESENT
private List<String> options
Constructor Detail |
---|
public PropagateErrorsOnUpdateDownloadPolicy()
Method Detail |
---|
public boolean applyPolicy(String policySetting, Properties request, File localFile, Exception exception, Map<String,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 String getDefaultOption()
Policy
getDefaultOption
in interface Policy
public String getId()
Policy
getId
in interface Policy
public String getName()
Policy
getName
in interface Policy
public List<String> getOptions()
Policy
getOptions
in interface Policy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |