org.apache.maven.plugins.site.wagon.repository
Class Repository
java.lang.Object
org.apache.maven.plugins.site.wagon.repository.Repository
- All Implemented Interfaces:
- Serializable
public class Repository
- extends Object
- implements Serializable
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$
- 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()
setId
public void setId(String id)
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.
- Returns:
- the base directory
setBasedir
public void setBasedir(String basedir)
setName
public void setName(String name)
getPort
public int getPort()
setPort
public void setPort(int port)
setUrl
public void setUrl(String url)
getUrl
public String getUrl()
getHost
public String getHost()
getName
public String getName()
toString
public String toString()
- Overrides:
toString
in class Object
getProtocol
public String getProtocol()
getPermissions
public org.apache.maven.wagon.repository.RepositoryPermissions getPermissions()
setPermissions
public void setPermissions(org.apache.maven.wagon.repository.RepositoryPermissions permissions)
getParameter
public String getParameter(String key)
setParameters
public void setParameters(Properties parameters)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getUsername
public String getUsername()
getPassword
public String getPassword()
setProtocol
public void setProtocol(String protocol)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.