org.apache.archiva.admin.model.beans
Class RemoteRepository

java.lang.Object
  extended by org.apache.archiva.admin.model.beans.AbstractRepository
      extended by org.apache.archiva.admin.model.beans.RemoteRepository
All Implemented Interfaces:
Serializable

public class RemoteRepository
extends AbstractRepository
implements Serializable

Since:
1.4-M1
Author:
Olivier Lamy
See Also:
Serialized Form

Field Summary
private  String cronExpression
          default model value daily : every sunday at 8H00
private  boolean downloadRemoteIndex
          Activate download of remote index if remoteIndexUrl is set too.
private  boolean downloadRemoteIndexOnStartup
           
private  Map<String,String> extraHeaders
          extraHeaders.
private  List<PropertyEntry> extraHeadersEntries
          field to ease json mapping wrapper on extraHeaders field
private  Map<String,String> extraParameters
          extraParameters.
private  List<PropertyEntry> extraParametersEntries
          field to ease json mapping wrapper on extraParameters field
private  String password
           
private  String remoteDownloadNetworkProxyId
           
private  int remoteDownloadTimeout
           
private  String remoteIndexUrl
          Remote Index Url : if not starting with http will be relative to the remote repository url.
private  int timeout
           
private  String url
           
private  String userName
           
 
Constructor Summary
RemoteRepository()
           
RemoteRepository(String id, String name, String url, String layout)
           
RemoteRepository(String id, String name, String url, String layout, String userName, String password, int timeout)
           
RemoteRepository(String id, String name, String url, String layout, String userName, String password, int timeout, String description)
           
 
Method Summary
 void addExtraHeader(String key, String value)
           
 void addExtraParameter(String key, String value)
           
 String getCronExpression()
           
 Map<String,String> getExtraHeaders()
           
 List<PropertyEntry> getExtraHeadersEntries()
           
 Map<String,String> getExtraParameters()
           
 List<PropertyEntry> getExtraParametersEntries()
           
 String getPassword()
           
 String getRemoteDownloadNetworkProxyId()
           
 int getRemoteDownloadTimeout()
           
 String getRemoteIndexUrl()
           
 int getTimeout()
           
 String getUrl()
           
 String getUserName()
           
 boolean isDownloadRemoteIndex()
           
 boolean isDownloadRemoteIndexOnStartup()
           
 void setCronExpression(String cronExpression)
           
 void setDownloadRemoteIndex(boolean downloadRemoteIndex)
           
 void setDownloadRemoteIndexOnStartup(boolean downloadRemoteIndexOnStartup)
           
 void setExtraHeaders(Map<String,String> extraHeaders)
           
 void setExtraHeadersEntries(List<PropertyEntry> extraHeadersEntries)
           
 void setExtraParameters(Map<String,String> extraParameters)
           
 void setExtraParametersEntries(List<PropertyEntry> extraParametersEntries)
           
 void setPassword(String password)
           
 void setRemoteDownloadNetworkProxyId(String remoteDownloadNetworkProxyId)
           
 void setRemoteDownloadTimeout(int remoteDownloadTimeout)
           
 void setRemoteIndexUrl(String remoteIndexUrl)
           
 void setTimeout(int timeout)
           
 void setUrl(String url)
           
 void setUserName(String userName)
           
 String toString()
           
 
Methods inherited from class org.apache.archiva.admin.model.beans.AbstractRepository
equals, getDescription, getId, getIndexDirectory, getLayout, getName, hashCode, setDescription, setId, setIndexDirectory, setLayout, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

url

private String url

userName

private String userName

password

private String password

timeout

private int timeout

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

cronExpression

private String cronExpression
default model value daily : every sunday at 8H00


remoteDownloadTimeout

private int remoteDownloadTimeout

downloadRemoteIndexOnStartup

private boolean downloadRemoteIndexOnStartup
Since:
1.4-M2

extraParameters

private Map<String,String> extraParameters
extraParameters.

Since:
1.4-M4

extraParametersEntries

private List<PropertyEntry> extraParametersEntries
field to ease json mapping wrapper on extraParameters field

Since:
1.4-M4

extraHeaders

private Map<String,String> extraHeaders
extraHeaders.

Since:
1.4-M4

extraHeadersEntries

private List<PropertyEntry> extraHeadersEntries
field to ease json mapping wrapper on extraHeaders field

Since:
1.4-M4
Constructor Detail

RemoteRepository

public RemoteRepository()

RemoteRepository

public RemoteRepository(String id,
                        String name,
                        String url,
                        String layout)

RemoteRepository

public RemoteRepository(String id,
                        String name,
                        String url,
                        String layout,
                        String userName,
                        String password,
                        int timeout)

RemoteRepository

public RemoteRepository(String id,
                        String name,
                        String url,
                        String layout,
                        String userName,
                        String password,
                        int timeout,
                        String description)
Since:
1.4-M3
Method Detail

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getUserName

public String getUserName()

setUserName

public void setUserName(String userName)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

isDownloadRemoteIndex

public boolean isDownloadRemoteIndex()

setDownloadRemoteIndex

public void setDownloadRemoteIndex(boolean downloadRemoteIndex)

getRemoteIndexUrl

public String getRemoteIndexUrl()

setRemoteIndexUrl

public void setRemoteIndexUrl(String remoteIndexUrl)

getRemoteDownloadNetworkProxyId

public String getRemoteDownloadNetworkProxyId()

setRemoteDownloadNetworkProxyId

public void setRemoteDownloadNetworkProxyId(String remoteDownloadNetworkProxyId)

getCronExpression

public String getCronExpression()

setCronExpression

public void setCronExpression(String cronExpression)

getRemoteDownloadTimeout

public int getRemoteDownloadTimeout()

setRemoteDownloadTimeout

public void setRemoteDownloadTimeout(int remoteDownloadTimeout)

isDownloadRemoteIndexOnStartup

public boolean isDownloadRemoteIndexOnStartup()

setDownloadRemoteIndexOnStartup

public void setDownloadRemoteIndexOnStartup(boolean downloadRemoteIndexOnStartup)

getExtraParameters

public Map<String,String> getExtraParameters()

setExtraParameters

public void setExtraParameters(Map<String,String> extraParameters)

addExtraParameter

public void addExtraParameter(String key,
                              String value)

getExtraParametersEntries

public List<PropertyEntry> getExtraParametersEntries()

setExtraParametersEntries

public void setExtraParametersEntries(List<PropertyEntry> extraParametersEntries)

getExtraHeaders

public Map<String,String> getExtraHeaders()

setExtraHeaders

public void setExtraHeaders(Map<String,String> extraHeaders)

addExtraHeader

public void addExtraHeader(String key,
                           String value)

getExtraHeadersEntries

public List<PropertyEntry> getExtraHeadersEntries()

setExtraHeadersEntries

public void setExtraHeadersEntries(List<PropertyEntry> extraHeadersEntries)

toString

public String toString()
Overrides:
toString in class AbstractRepository


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