@Service(value="downloadErrorPolicy#propagate-errors-on-update") public class PropagateErrorsOnUpdateDownloadPolicy extends Object implements DownloadErrorPolicy
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
PropagateErrorsOnUpdateDownloadPolicy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String ALWAYS
public static final String NOT_PRESENT
public PropagateErrorsOnUpdateDownloadPolicy()
public boolean applyPolicy(String policySetting, Properties request, File localFile, Exception exception, Map<String,Exception> previousExceptions) throws PolicyConfigurationException
DownloadErrorPolicyapplyPolicy 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 exceptionsPolicyConfigurationException - if the policy is improperly configuredpublic String getDefaultOption()
PolicygetDefaultOption in interface Policypublic String getName()
Policypublic List<String> getOptions()
PolicygetOptions in interface PolicyCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.