org.apache.maven.settings
Class Mirror

java.lang.Object
  extended by org.apache.maven.settings.TrackableBase
      extended by org.apache.maven.settings.IdentifiableBase
          extended by 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
Mirror()
           
 
Method Summary
 java.lang.String getMirrorOf()
          Get The server ID of the repository being mirrored, eg "central".
 java.lang.String getModelEncoding()
           
 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 setModelEncoding(java.lang.String modelEncoding)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mirror

public Mirror()
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.


getName

public java.lang.String getName()
Get The optional name that describes the mirror.


getUrl

public java.lang.String getUrl()
Get The URL of the mirror repository.


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 -

setName

public void setName(java.lang.String name)
Set The optional name that describes the mirror.

Parameters:
name -

setUrl

public void setUrl(java.lang.String url)
Set The URL of the mirror repository.

Parameters:
url -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Overrides:
setModelEncoding in class IdentifiableBase

getModelEncoding

public java.lang.String getModelEncoding()
Overrides:
getModelEncoding in class IdentifiableBase


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