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
A download mirror for a given repository.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The server ID of the repository being mirrored, eg "central".private String
The optional name that describes the mirror.private String
The URL of the mirror repository.Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the server ID of the repository being mirrored, eg "central".getName()
Get the optional name that describes the mirror.getUrl()
Get the URL of the mirror repository.void
setMirrorOf
(String mirrorOf) Set the server ID of the repository being mirrored, eg "central".void
Set the optional name that describes the mirror.void
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
-
Field Details
-
mirrorOf
The server ID of the repository being mirrored, eg "central". This MUST NOT match the mirror id. -
name
The optional name that describes the mirror. -
url
The URL of the mirror repository.
-
-
Constructor Details
-
Mirror
public Mirror()
-
-
Method Details
-
getMirrorOf
Get the server ID of the repository being mirrored, eg "central". This MUST NOT match the mirror id.- Returns:
- String
-
getName
Get the optional name that describes the mirror.- Returns:
- String
-
getUrl
Get the URL of the mirror repository.- Returns:
- String
-
setMirrorOf
Set the server ID of the repository being mirrored, eg "central". This MUST NOT match the mirror id.- Parameters:
mirrorOf
- a mirrorOf object.
-
setName
Set the optional name that describes the mirror.- Parameters:
name
- a name object.
-
setUrl
Set the URL of the mirror repository.- Parameters:
url
- a url object.
-