|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
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 |
|---|
public static final String STOP
public static final String QUEUE
public static final String IGNORE
| 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 DownloadErrorPolicypolicySetting - 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 Policypublic String getId()
Policy
getId in interface Policypublic String getName()
Policy
getName in interface Policypublic List<String> getOptions()
Policy
getOptions in interface Policy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||