public class Mirror extends IdentifiableBase implements Serializable, Cloneable
GLOBAL_LEVEL, USER_LEVEL
Constructor and Description |
---|
Mirror() |
Modifier and Type | Method and Description |
---|---|
Mirror |
clone()
Method clone.
|
String |
getLayout()
Get the layout of the mirror repository.
|
String |
getMirrorOf()
Get the server ID of the repository being mirrored, e.g.,
"central".
|
String |
getMirrorOfLayouts()
Get the layouts of repositories being mirrored.
|
String |
getName()
Get the optional name that describes the mirror.
|
String |
getUrl()
Get the URL of the mirror repository.
|
boolean |
isBlocked()
Get whether this mirror should be blocked from any download
request but fail the download process, explaining why.
|
void |
setBlocked(boolean blocked)
Set whether this mirror should be blocked from any download
request but fail the download process, explaining why.
|
void |
setLayout(String layout)
Set the layout of the mirror repository.
|
void |
setMirrorOf(String mirrorOf)
Set the server ID of the repository being mirrored, e.g.,
"central".
|
void |
setMirrorOfLayouts(String mirrorOfLayouts)
Set the layouts of repositories being mirrored.
|
void |
setName(String name)
Set the optional name that describes the mirror.
|
void |
setUrl(String url)
Set the URL of the mirror repository.
|
String |
toString() |
getId, setId
getSourceLevel, setSourceLevel
public Mirror clone()
clone
in class IdentifiableBase
public String getLayout()
public String getMirrorOf()
public String getMirrorOfLayouts()
public String getName()
public String getUrl()
public boolean isBlocked()
public void setBlocked(boolean blocked)
blocked
- public void setLayout(String layout)
layout
- public void setMirrorOf(String mirrorOf)
mirrorOf
- public void setMirrorOfLayouts(String mirrorOfLayouts)
mirrorOfLayouts
- public void setName(String name)
name
- public void setUrl(String url)
url
- Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.