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:
java.io.Serializable
public class Mirror extends IdentifiableBase implements java.io.Serializable
A download mirror for a given repository.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Mirror()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMirrorOf()
Get the server ID of the repository being mirrored, eg "central".java.lang.String
getName()
Get the optional name that describes the mirror.java.lang.String
getUrl()
Get the URL of the mirror repository.void
setMirrorOf(java.lang.String mirrorOf)
Set the server ID of the repository being mirrored, eg "central".void
setName(java.lang.String name)
Set the optional name that describes the mirror.void
setUrl(java.lang.String url)
Set the URL of the mirror repository.-
Methods inherited from class org.apache.maven.settings.IdentifiableBase
getId, setId
-
Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Method Detail
-
getMirrorOf
public java.lang.String getMirrorOf()
Get the server ID of the repository being mirrored, eg "central". This MUST NOT match the mirror id.- Returns:
- String
-
getName
public java.lang.String getName()
Get the optional name that describes the mirror.- Returns:
- String
-
getUrl
public java.lang.String getUrl()
Get the URL of the mirror repository.- Returns:
- String
-
setMirrorOf
public void setMirrorOf(java.lang.String mirrorOf)
Set the server ID of the repository being mirrored, eg "central". This MUST NOT match the mirror id.- Parameters:
mirrorOf
- a mirrorOf object.
-
setName
public void setName(java.lang.String name)
Set the optional name that describes the mirror.- Parameters:
name
- a name object.
-
setUrl
public void setUrl(java.lang.String url)
Set the URL of the mirror repository.- Parameters:
url
- a url object.
-
-