org.apache.maven.plugins.site.wagon.repository
Class Repository
java.lang.Object
org.apache.maven.wagon.repository.Repository
org.apache.maven.plugins.site.wagon.repository.Repository
- All Implemented Interfaces:
- Serializable
public class Repository
- extends org.apache.maven.wagon.repository.Repository
This class is an abstraction of the location from/to resources
can be transfered.
Note: This is a copy of a file from Wagon. It was copied here to be able to work around WAGON-307.
This class can be removed when the prerequisite Maven version uses wagon-provider-api:1.0-beta-7.
- Version:
- $Id: Repository.html 816568 2012-05-08 12:09:38Z hboutemy $
- Author:
- Michal Maczka
- See Also:
- Serialized Form
Repository
public Repository()
- Deprecated. use
Repository(String, String)
Repository
public Repository(String id,
String url)
getId
public String getId()
- Overrides:
getId
in class org.apache.maven.wagon.repository.Repository
setId
public void setId(String id)
- Overrides:
setId
in class org.apache.maven.wagon.repository.Repository
getBasedir
public String getBasedir()
- Retrieve the base directory of the repository. This is derived from the full repository URL, and
contains the entire path component.
- Overrides:
getBasedir
in class org.apache.maven.wagon.repository.Repository
- Returns:
- the base directory
setBasedir
public void setBasedir(String basedir)
- Overrides:
setBasedir
in class org.apache.maven.wagon.repository.Repository
setName
public void setName(String name)
- Overrides:
setName
in class org.apache.maven.wagon.repository.Repository
getPort
public int getPort()
- Overrides:
getPort
in class org.apache.maven.wagon.repository.Repository
setPort
public void setPort(int port)
- Overrides:
setPort
in class org.apache.maven.wagon.repository.Repository
setUrl
public void setUrl(String url)
- Overrides:
setUrl
in class org.apache.maven.wagon.repository.Repository
getUrl
public String getUrl()
- Overrides:
getUrl
in class org.apache.maven.wagon.repository.Repository
getHost
public String getHost()
- Overrides:
getHost
in class org.apache.maven.wagon.repository.Repository
getName
public String getName()
- Overrides:
getName
in class org.apache.maven.wagon.repository.Repository
toString
public String toString()
- Overrides:
toString
in class org.apache.maven.wagon.repository.Repository
getProtocol
public String getProtocol()
- Overrides:
getProtocol
in class org.apache.maven.wagon.repository.Repository
getPermissions
public org.apache.maven.wagon.repository.RepositoryPermissions getPermissions()
- Overrides:
getPermissions
in class org.apache.maven.wagon.repository.Repository
setPermissions
public void setPermissions(org.apache.maven.wagon.repository.RepositoryPermissions permissions)
- Overrides:
setPermissions
in class org.apache.maven.wagon.repository.Repository
getParameter
public String getParameter(String key)
- Overrides:
getParameter
in class org.apache.maven.wagon.repository.Repository
setParameters
public void setParameters(Properties parameters)
- Overrides:
setParameters
in class org.apache.maven.wagon.repository.Repository
hashCode
public int hashCode()
- Overrides:
hashCode
in class org.apache.maven.wagon.repository.Repository
equals
public boolean equals(Object obj)
- Overrides:
equals
in class org.apache.maven.wagon.repository.Repository
getUsername
public String getUsername()
- Overrides:
getUsername
in class org.apache.maven.wagon.repository.Repository
getPassword
public String getPassword()
- Overrides:
getPassword
in class org.apache.maven.wagon.repository.Repository
setProtocol
public void setProtocol(String protocol)
- Overrides:
setProtocol
in class org.apache.maven.wagon.repository.Repository
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.