public class RemoteRepositoryConfiguration extends AbstractRepositoryConfiguration implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
checkPath
The path to check the repository availability (relative to
the repository URL).
|
private boolean |
downloadRemoteIndex
Activate download of remote index if
remoteIndexUrl is set too.
|
private boolean |
downloadRemoteIndexOnStartup
Schedule download of remote index when archiva
start
.
|
private Map |
extraHeaders
Field extraHeaders.
|
private Map |
extraParameters
Field extraParameters.
|
private String |
password
The Password for this repository.
|
private String |
refreshCronExpression
When to run the refresh task.
|
private String |
remoteDownloadNetworkProxyId
Id of the networkProxy to use when downloading
remote index.
|
private int |
remoteDownloadTimeout
Timeout in seconds for download remote index.
|
private String |
remoteIndexUrl
Remote Index Url : if not starting with http
will be relative to the remote repository url.
|
private int |
timeout
Timeout in seconds for connections to this
repository
.
|
private String |
url
The URL for this repository.
|
private String |
username
The Username for this repository.
|
Constructor and Description |
---|
RemoteRepositoryConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addExtraHeader(Object key,
String value)
Method addExtraHeader.
|
void |
addExtraParameter(Object key,
String value)
Method addExtraParameter.
|
String |
getCheckPath()
Get the path to check the repository availability (relative
to the repository URL).
|
Map |
getExtraHeaders()
Method getExtraHeaders.
|
Map |
getExtraParameters()
Method getExtraParameters.
|
String |
getPassword()
Get the Password for this repository.
|
String |
getRefreshCronExpression()
Get when to run the refresh task.
|
String |
getRemoteDownloadNetworkProxyId()
Get id of the networkProxy to use when downloading remote
index.
|
int |
getRemoteDownloadTimeout()
Get timeout in seconds for download remote index.
|
String |
getRemoteIndexUrl()
Get remote Index Url : if not starting with http will be
relative to the remote repository url.
|
int |
getTimeout()
Get timeout in seconds for connections to this repository.
|
String |
getUrl()
Get the URL for this repository.
|
String |
getUsername()
Get the Username for this repository.
|
boolean |
isDownloadRemoteIndex()
Get activate download of remote index if remoteIndexUrl is
set too.
|
boolean |
isDownloadRemoteIndexOnStartup()
Get schedule download of remote index when archiva start.
|
void |
setCheckPath(String checkPath)
Set the path to check the repository availability (relative
to the repository URL).
|
void |
setDownloadRemoteIndex(boolean downloadRemoteIndex)
Set activate download of remote index if remoteIndexUrl is
set too.
|
void |
setDownloadRemoteIndexOnStartup(boolean downloadRemoteIndexOnStartup)
Set schedule download of remote index when archiva start.
|
void |
setExtraHeaders(Map extraHeaders)
Set additional http headers to add to url when requesting
remote repositories.
|
void |
setExtraParameters(Map extraParameters)
Set additionnal request parameters to add to url when
requesting remote repositories.
|
void |
setPassword(String password)
Set the Password for this repository.
|
void |
setRefreshCronExpression(String refreshCronExpression)
Set when to run the refresh task.
|
void |
setRemoteDownloadNetworkProxyId(String remoteDownloadNetworkProxyId)
Set id of the networkProxy to use when downloading remote
index.
|
void |
setRemoteDownloadTimeout(int remoteDownloadTimeout)
Set timeout in seconds for download remote index.
|
void |
setRemoteIndexUrl(String remoteIndexUrl)
Set remote Index Url : if not starting with http will be
relative to the remote repository url.
|
void |
setTimeout(int timeout)
Set timeout in seconds for connections to this repository.
|
void |
setUrl(String url)
Set the URL for this repository.
|
void |
setUsername(String username)
Set the Username for this repository.
|
String |
toString() |
equals, getDescription, getId, getIndexDir, getLayout, getName, hashCode, setDescription, setId, setIndexDir, setLayout, setName
private int timeout
private String refreshCronExpression
private boolean downloadRemoteIndex
private String remoteIndexUrl
private String remoteDownloadNetworkProxyId
private int remoteDownloadTimeout
private boolean downloadRemoteIndexOnStartup
private Map extraParameters
private Map extraHeaders
public RemoteRepositoryConfiguration()
public void addExtraHeader(Object key, String value)
key
- value
- public void addExtraParameter(Object key, String value)
key
- value
- public String getCheckPath()
public Map getExtraHeaders()
public Map getExtraParameters()
public String getPassword()
public String getRefreshCronExpression()
public String getRemoteDownloadNetworkProxyId()
public int getRemoteDownloadTimeout()
public String getRemoteIndexUrl()
public int getTimeout()
public String getUsername()
public boolean isDownloadRemoteIndex()
public boolean isDownloadRemoteIndexOnStartup()
public void setCheckPath(String checkPath)
checkPath
- public void setDownloadRemoteIndex(boolean downloadRemoteIndex)
downloadRemoteIndex
- public void setDownloadRemoteIndexOnStartup(boolean downloadRemoteIndexOnStartup)
downloadRemoteIndexOnStartup
- public void setExtraHeaders(Map extraHeaders)
extraHeaders
- public void setExtraParameters(Map extraParameters)
extraParameters
- public void setPassword(String password)
password
- public void setRefreshCronExpression(String refreshCronExpression)
refreshCronExpression
- public void setRemoteDownloadNetworkProxyId(String remoteDownloadNetworkProxyId)
remoteDownloadNetworkProxyId
- public void setRemoteDownloadTimeout(int remoteDownloadTimeout)
remoteDownloadTimeout
- public void setRemoteIndexUrl(String remoteIndexUrl)
remoteIndexUrl
- public void setTimeout(int timeout)
timeout
- public void setUsername(String username)
username
- Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.