|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.policies.ChecksumPolicy
public class ChecksumPolicy
ChecksumPolicy - a policy applied after the download to see if the file has been downloaded successfully and completely (or not).
Field Summary | |
---|---|
static java.lang.String |
FAIL
The FAIL policy indicates that if the checksum does not match the downloaded file, then remove the downloaded artifact, and checksum files, and fail the transfer to the client side. |
static java.lang.String |
FIX
The FIX policy indicates that if the checksum does not match the downloaded file, then fix the checksum file locally, and return to the client side the corrected checksum. |
static java.lang.String |
IGNORE
The IGNORE policy indicates that if the checksum policy is ignored, and the state of, contents of, or validity of the checksum files are not checked. |
Constructor Summary | |
---|---|
ChecksumPolicy()
|
Method Summary | |
---|---|
void |
applyPolicy(java.lang.String policySetting,
java.util.Properties request,
java.io.File localFile)
Apply the download policy. |
java.lang.String |
getDefaultOption()
Get the default option for this policy. |
java.lang.String |
getId()
Get the id for this policy. |
java.lang.String |
getName()
Get the display name for this policy. |
java.util.List<java.lang.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 java.lang.String IGNORE
public static final java.lang.String FAIL
public static final java.lang.String FIX
Constructor Detail |
---|
public ChecksumPolicy()
Method Detail |
---|
public void applyPolicy(java.lang.String policySetting, java.util.Properties request, java.io.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
public java.lang.String getDefaultOption()
Policy
getDefaultOption
in interface Policy
public java.lang.String getId()
Policy
getId
in interface Policy
public java.lang.String getName()
Policy
getName
in interface Policy
public java.util.List<java.lang.String> getOptions()
Policy
getOptions
in interface Policy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |