org.apache.maven.settings
Class RepositoryPolicy

java.lang.Object
  extended by org.apache.maven.settings.RepositoryPolicy
All Implemented Interfaces:
java.io.Serializable

public class RepositoryPolicy
extends java.lang.Object
implements java.io.Serializable

Download policy

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
RepositoryPolicy()
           
 
Method Summary
 java.lang.String getChecksumPolicy()
          Get What to do when verification of an artifact checksum fails - warn, fail, etc.
 java.lang.String getModelEncoding()
           
 java.lang.String getUpdatePolicy()
          Get The frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).
 boolean isEnabled()
          Get Whether to use this repository for downloading this type of artifact.
 void setChecksumPolicy(java.lang.String checksumPolicy)
          Set What to do when verification of an artifact checksum fails - warn, fail, etc.
 void setEnabled(boolean enabled)
          Set Whether to use this repository for downloading this type of artifact.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setUpdatePolicy(java.lang.String updatePolicy)
          Set The frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryPolicy

public RepositoryPolicy()
Method Detail

getChecksumPolicy

public java.lang.String getChecksumPolicy()
Get What to do when verification of an artifact checksum fails - warn, fail, etc. Valid values are "fail" or "warn".


getUpdatePolicy

public java.lang.String getUpdatePolicy()
Get The frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).


isEnabled

public boolean isEnabled()
Get Whether to use this repository for downloading this type of artifact.


setChecksumPolicy

public void setChecksumPolicy(java.lang.String checksumPolicy)
Set What to do when verification of an artifact checksum fails - warn, fail, etc. Valid values are "fail" or "warn".

Parameters:
checksumPolicy -

setEnabled

public void setEnabled(boolean enabled)
Set Whether to use this repository for downloading this type of artifact.

Parameters:
enabled -

setUpdatePolicy

public void setUpdatePolicy(java.lang.String updatePolicy)
Set The frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).

Parameters:
updatePolicy -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.