org.apache.archiva.configuration
Class RemoteRepositoryConfiguration

java.lang.Object
  extended by org.apache.archiva.configuration.AbstractRepositoryConfiguration
      extended by org.apache.archiva.configuration.RemoteRepositoryConfiguration
All Implemented Interfaces:
Serializable

public class RemoteRepositoryConfiguration
extends AbstractRepositoryConfiguration
implements Serializable

Class RemoteRepositoryConfiguration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
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 Summary
RemoteRepositoryConfiguration()
           
 
Method Summary
 void addExtraHeader(Object key, String value)
          Method addExtraHeader.
 void addExtraParameter(Object key, String value)
          Method addExtraParameter.
 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 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 additionnal 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()
           
 
Methods inherited from class org.apache.archiva.configuration.AbstractRepositoryConfiguration
equals, getDescription, getId, getIndexDir, getLayout, getName, hashCode, setDescription, setId, setIndexDir, setLayout, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

url

private String url
The URL for this repository.


username

private String username
The Username for this repository.


password

private String password
The Password for this repository.


timeout

private int timeout
Timeout in seconds for connections to this repository .


refreshCronExpression

private String refreshCronExpression
When to run the refresh task. Default is every sunday at 8H00.


downloadRemoteIndex

private boolean downloadRemoteIndex
Activate download of remote index if remoteIndexUrl is set too.


remoteIndexUrl

private String remoteIndexUrl
Remote Index Url : if not starting with http will be relative to the remote repository url.


remoteDownloadNetworkProxyId

private String remoteDownloadNetworkProxyId
Id of the networkProxy to use when downloading remote index.


remoteDownloadTimeout

private int remoteDownloadTimeout
Timeout in seconds for download remote index. Default is more long than artifact download.


downloadRemoteIndexOnStartup

private boolean downloadRemoteIndexOnStartup
Schedule download of remote index when archiva start .


extraParameters

private Map extraParameters
Field extraParameters.


extraHeaders

private Map extraHeaders
Field extraHeaders.

Constructor Detail

RemoteRepositoryConfiguration

public RemoteRepositoryConfiguration()
Method Detail

addExtraHeader

public void addExtraHeader(Object key,
                           String value)
Method addExtraHeader.

Parameters:
key -
value -

addExtraParameter

public void addExtraParameter(Object key,
                              String value)
Method addExtraParameter.

Parameters:
key -
value -

getExtraHeaders

public Map getExtraHeaders()
Method getExtraHeaders.

Returns:
Map

getExtraParameters

public Map getExtraParameters()
Method getExtraParameters.

Returns:
Map

getPassword

public String getPassword()
Get the Password for this repository.

Returns:
String

getRefreshCronExpression

public String getRefreshCronExpression()
Get when to run the refresh task. Default is every sunday at 8H00.

Returns:
String

getRemoteDownloadNetworkProxyId

public String getRemoteDownloadNetworkProxyId()
Get id of the networkProxy to use when downloading remote index.

Returns:
String

getRemoteDownloadTimeout

public int getRemoteDownloadTimeout()
Get timeout in seconds for download remote index. Default is more long than artifact download.

Returns:
int

getRemoteIndexUrl

public String getRemoteIndexUrl()
Get remote Index Url : if not starting with http will be relative to the remote repository url.

Returns:
String

getTimeout

public int getTimeout()
Get timeout in seconds for connections to this repository.

Returns:
int

getUrl

public String getUrl()
Get the URL for this repository.

Returns:
String

getUsername

public String getUsername()
Get the Username for this repository.

Returns:
String

isDownloadRemoteIndex

public boolean isDownloadRemoteIndex()
Get activate download of remote index if remoteIndexUrl is set too.

Returns:
boolean

isDownloadRemoteIndexOnStartup

public boolean isDownloadRemoteIndexOnStartup()
Get schedule download of remote index when archiva start.

Returns:
boolean

setDownloadRemoteIndex

public void setDownloadRemoteIndex(boolean downloadRemoteIndex)
Set activate download of remote index if remoteIndexUrl is set too.

Parameters:
downloadRemoteIndex -

setDownloadRemoteIndexOnStartup

public void setDownloadRemoteIndexOnStartup(boolean downloadRemoteIndexOnStartup)
Set schedule download of remote index when archiva start.

Parameters:
downloadRemoteIndexOnStartup -

setExtraHeaders

public void setExtraHeaders(Map extraHeaders)
Set additionnal http headers to add to url when requesting remote repositories.

Parameters:
extraHeaders -

setExtraParameters

public void setExtraParameters(Map extraParameters)
Set additionnal request parameters to add to url when requesting remote repositories.

Parameters:
extraParameters -

setPassword

public void setPassword(String password)
Set the Password for this repository.

Parameters:
password -

setRefreshCronExpression

public void setRefreshCronExpression(String refreshCronExpression)
Set when to run the refresh task. Default is every sunday at 8H00.

Parameters:
refreshCronExpression -

setRemoteDownloadNetworkProxyId

public void setRemoteDownloadNetworkProxyId(String remoteDownloadNetworkProxyId)
Set id of the networkProxy to use when downloading remote index.

Parameters:
remoteDownloadNetworkProxyId -

setRemoteDownloadTimeout

public void setRemoteDownloadTimeout(int remoteDownloadTimeout)
Set timeout in seconds for download remote index. Default is more long than artifact download.

Parameters:
remoteDownloadTimeout -

setRemoteIndexUrl

public void setRemoteIndexUrl(String remoteIndexUrl)
Set remote Index Url : if not starting with http will be relative to the remote repository url.

Parameters:
remoteIndexUrl -

setTimeout

public void setTimeout(int timeout)
Set timeout in seconds for connections to this repository.

Parameters:
timeout -

setUrl

public void setUrl(String url)
Set the URL for this repository.

Parameters:
url -

setUsername

public void setUsername(String username)
Set the Username for this repository.

Parameters:
username -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.