public abstract class AbstractUpdatePolicy extends Object implements PreDownloadPolicy
Modifier and Type | Field and Description |
---|---|
static String |
ALWAYS
The ALWAYS policy setting means that the artifact is always uipdated from the remote repo.
|
static String |
DAILY
The DAILY policy means that the artifact retrieval occurs only if one of
the following conditions are met...
|
static String |
HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of
the following conditions are met...
|
private org.slf4j.Logger |
log |
static String |
NEVER
The NEVER policy setting means that the artifact is never updated from the remote repo.
|
static String |
ONCE
The ONCE policy means that the artifact retrieval occurs only if the
local artifact is not present.
|
private List<String> |
options |
Constructor and Description |
---|
AbstractUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
void |
applyPolicy(String policySetting,
Properties request,
File localFile)
Apply the download policy.
|
List<String> |
getOptions()
Get the list of options for this policy.
|
protected abstract String |
getUpdateMode() |
protected abstract boolean |
isSnapshotPolicy() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultOption, getId, getName
private org.slf4j.Logger log
public static final String ALWAYS
public static final String NEVER
public static final String DAILY
The DAILY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final String HOURLY
The HOURLY policy means that the artifact retrieval occurs only if one of the following conditions are met...
public static final String ONCE
public AbstractUpdatePolicy()
protected abstract boolean isSnapshotPolicy()
protected abstract String getUpdateMode()
public List<String> getOptions()
Policy
getOptions
in interface Policy
public void applyPolicy(String policySetting, Properties request, File localFile) throws PolicyViolationException, PolicyConfigurationException
DownloadPolicy
applyPolicy
in interface DownloadPolicy
policySetting
- the policy setting.request
- the list of request properties that the policy might use.PolicyViolationException
- if the policy has been violated.PolicyConfigurationException
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.