|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.archiva.policies.PropagateErrorsDownloadPolicy
@Service(value="downloadErrorPolicy#propagate-errors") public class PropagateErrorsDownloadPolicy
PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
Field Summary | |
---|---|
static String |
IGNORE
Ignore errors and treat as if it were not found. |
private org.slf4j.Logger |
log
|
private List<String> |
options
|
static String |
QUEUE
Propagate errors at the end after all are gathered, if there was no successful download from other proxies. |
static String |
STOP
Signifies any error should stop searching for other proxies. |
Constructor Summary | |
---|---|
PropagateErrorsDownloadPolicy()
|
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 |
---|
private org.slf4j.Logger log
public static final String STOP
public static final String QUEUE
public static final String IGNORE
private List<String> options
Constructor Detail |
---|
public PropagateErrorsDownloadPolicy()
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 |