Package org.apache.maven.settings
Class Mirror
java.lang.Object
org.apache.maven.settings.TrackableBase
org.apache.maven.settings.IdentifiableBase
org.apache.maven.settings.Mirror
- All Implemented Interfaces:
- Serializable,- Cloneable
A download mirror for a given repository.
- Version:
- $Revision$ $Date$
- See Also:
- 
Field SummaryFields inherited from class org.apache.maven.settings.TrackableBaseGLOBAL_LEVEL, USER_LEVEL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.Get the layout of the mirror repository.Get the server ID of the repository being mirrored, e.g., "central".Get the layouts of repositories being mirrored.getName()Get the optional name that describes the mirror.getUrl()Get the URL of the mirror repository.booleanGet whether this mirror should be blocked from any download request but fail the download process, explaining why.voidsetBlocked(boolean blocked) Set whether this mirror should be blocked from any download request but fail the download process, explaining why.voidSet the layout of the mirror repository.voidsetMirrorOf(String mirrorOf) Set the server ID of the repository being mirrored, e.g., "central".voidsetMirrorOfLayouts(String mirrorOfLayouts) Set the layouts of repositories being mirrored.voidSet the optional name that describes the mirror.voidSet the URL of the mirror repository.toString()Methods inherited from class org.apache.maven.settings.IdentifiableBasegetId, setIdMethods inherited from class org.apache.maven.settings.TrackableBasegetSourceLevel, setSourceLevel
- 
Constructor Details- 
Mirrorpublic Mirror()
 
- 
- 
Method Details- 
cloneMethod clone.- Overrides:
- clonein class- IdentifiableBase
- Returns:
- Mirror
 
- 
getLayoutGet the layout of the mirror repository. Since Maven 3.- Returns:
- String
 
- 
getMirrorOfGet the server ID of the repository being mirrored, e.g., "central". This MUST NOT match the mirror id.- Returns:
- String
 
- 
getMirrorOfLayoutsGet the layouts of repositories being mirrored. This value can be used to restrict the usage of the mirror to repositories with a matching layout (apart from a matching id). Since Maven 3.- Returns:
- String
 
- 
getNameGet the optional name that describes the mirror.- Returns:
- String
 
- 
getUrlGet the URL of the mirror repository.- Returns:
- String
 
- 
isBlockedpublic boolean isBlocked()Get whether this mirror should be blocked from any download request but fail the download process, explaining why.- Returns:
- boolean
 
- 
setBlockedpublic void setBlocked(boolean blocked) Set whether this mirror should be blocked from any download request but fail the download process, explaining why.- Parameters:
- blocked- a blocked object.
 
- 
setLayoutSet the layout of the mirror repository. Since Maven 3.- Parameters:
- layout- a layout object.
 
- 
setMirrorOfSet the server ID of the repository being mirrored, e.g., "central". This MUST NOT match the mirror id.- Parameters:
- mirrorOf- a mirrorOf object.
 
- 
setMirrorOfLayoutsSet the layouts of repositories being mirrored. This value can be used to restrict the usage of the mirror to repositories with a matching layout (apart from a matching id). Since Maven 3.- Parameters:
- mirrorOfLayouts- a mirrorOfLayouts object.
 
- 
setNameSet the optional name that describes the mirror.- Parameters:
- name- a name object.
 
- 
setUrlSet the URL of the mirror repository.- Parameters:
- url- a url object.
 
- 
toString
 
-