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 a repository id or (since Maven 2.0.9) an expression matching one or many repository ids to mirror, e.g.,centralor*,!repo1.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 a repository id or (since Maven 2.0.9) an expression matching one or many repository ids to mirror, e.g.,centralor*,!repo1.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 a repository id or (since Maven 2.0.9) an expression matching one or many repository ids to mirror, e.g.,centralor*,!repo1.*(since Maven 2.0.5),external:*(since Maven 2.0.9) andexternal:http:*(since Maven 3.8.0) have a special meaning: see Mirror Settings guide.- 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.
 Default value is:false
 Since: Maven 3.8.0.- 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.
 Default value is:false
 Since: Maven 3.8.0.- Parameters:
- blocked- a blocked object.
 
- 
setLayoutSet the layout of the mirror repository.
 Since: Maven 3.- Parameters:
- layout- a layout object.
 
- 
setMirrorOfSet a repository id or (since Maven 2.0.9) an expression matching one or many repository ids to mirror, e.g.,centralor*,!repo1.*(since Maven 2.0.5),external:*(since Maven 2.0.9) andexternal:http:*(since Maven 3.8.0) have a special meaning: see Mirror Settings guide.- 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
 
-