Class Repository
java.lang.Object
org.apache.maven.wagon.repository.Repository
- All Implemented Interfaces:
Serializable
This class is an abstraction of the location from/to resources
can be transfered.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private String
private String
private Properties
Properties influencing wagon behaviour which are very specific to particular wagon.private String
private RepositoryPermissions
private int
private String
private static final long
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieve the base directory of the repository.getHost()
getId()
getName()
getParameter
(String key) int
getPort()
getUrl()
int
hashCode()
private boolean
Checks whtther provided url contains IPv6 format in host portionvoid
setBasedir
(String basedir) void
void
void
setParameters
(Properties parameters) void
setPermissions
(RepositoryPermissions permissions) void
setPort
(int port) void
setProtocol
(String protocol) void
toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
id
-
name
-
host
-
port
private int port -
basedir
-
protocol
-
url
-
permissions
-
parameters
Properties influencing wagon behaviour which are very specific to particular wagon. -
username
-
password
-
-
Constructor Details
-
Repository
public Repository()Deprecated. -
Repository
-
-
Method Details
-
getId
-
setId
-
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
-
setName
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
setUrl
-
getUrl
-
isIPv6Address
private boolean isIPv6Address()Checks whtther provided url contains IPv6 format in host portion- Returns:
- true if provide host part is of IPv6 format
-
getHost
-
getName
-
toString
-
getProtocol
-
getPermissions
-
setPermissions
-
getParameter
-
setParameters
-
hashCode
public int hashCode() -
equals
-
getUsername
-
getPassword
-
setProtocol
-
Repository(String, String)