public class Mirror extends IdentifiableBase implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private boolean |
blocked
Whether this mirror should be blocked from any
download request but fail the download process, explaining
why.
|
private java.lang.String |
layout
The layout of the mirror repository.
|
private java.lang.String |
mirrorOf
The server ID of the repository being mirrored,
e.g.,
"central".
|
private java.lang.String |
mirrorOfLayouts
The layouts of repositories being mirrored.
|
private java.lang.String |
name
The optional name that describes the mirror.
|
private java.lang.String |
url
The URL of the mirror repository.
|
GLOBAL_LEVEL, USER_LEVEL
Constructor and Description |
---|
Mirror() |
Modifier and Type | Method and Description |
---|---|
Mirror |
clone()
Method clone.
|
java.lang.String |
getLayout()
Get the layout of the mirror repository.
|
java.lang.String |
getMirrorOf()
Get the server ID of the repository being mirrored, e.g.,
"central".
|
java.lang.String |
getMirrorOfLayouts()
Get the layouts of repositories being mirrored.
|
java.lang.String |
getName()
Get the optional name that describes the mirror.
|
java.lang.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(java.lang.String layout)
Set the layout of the mirror repository.
|
void |
setMirrorOf(java.lang.String mirrorOf)
Set the server ID of the repository being mirrored, e.g.,
"central".
|
void |
setMirrorOfLayouts(java.lang.String mirrorOfLayouts)
Set the layouts of repositories being mirrored.
|
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.
|
java.lang.String |
toString() |
getId, setId
getSourceLevel, setSourceLevel
private java.lang.String mirrorOf
private java.lang.String name
private java.lang.String url
private java.lang.String layout
private java.lang.String mirrorOfLayouts
private boolean blocked
public Mirror clone()
clone
in class IdentifiableBase
public java.lang.String getLayout()
public java.lang.String getMirrorOf()
public java.lang.String getMirrorOfLayouts()
public java.lang.String getName()
public java.lang.String getUrl()
public boolean isBlocked()
public void setBlocked(boolean blocked)
blocked
- a blocked object.public void setLayout(java.lang.String layout)
layout
- a layout object.public void setMirrorOf(java.lang.String mirrorOf)
mirrorOf
- a mirrorOf object.public void setMirrorOfLayouts(java.lang.String mirrorOfLayouts)
mirrorOfLayouts
- a mirrorOfLayouts object.public void setName(java.lang.String name)
name
- a name object.public void setUrl(java.lang.String url)
url
- a url object.public java.lang.String toString()
toString
in class java.lang.Object