public final class RemoteRepository extends Object implements ArtifactRepository
Modifier and Type | Class and Description |
---|---|
static class |
RemoteRepository.Builder
A builder to create remote repositories.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Authentication |
getAuthentication()
Gets the authentication that has been selected for this repository.
|
String |
getContentType()
Gets the type of the repository, for example "default".
|
String |
getHost()
Gets the host part from the repository's URL.
|
String |
getId()
Gets the identifier of this repository.
|
List<RemoteRepository> |
getMirroredRepositories()
Gets the repositories that this repository serves as a mirror for.
|
RepositoryPolicy |
getPolicy(boolean snapshot)
Gets the policy to apply for snapshot/release artifacts.
|
String |
getProtocol()
Gets the protocol part from the repository's URL, for example
file or http . |
Proxy |
getProxy()
Gets the proxy that has been selected for this repository.
|
String |
getUrl()
Gets the (base) URL of this repository.
|
int |
hashCode() |
boolean |
isRepositoryManager()
Indicates whether this repository refers to a repository manager or not.
|
String |
toString() |
public String getId()
ArtifactRepository
getId
in interface ArtifactRepository
null
.public String getContentType()
ArtifactRepository
getContentType
in interface ArtifactRepository
null
.public String getUrl()
null
.public String getProtocol()
file
or http
. As suggested by RFC
2396, section 3.1 "Scheme Component", the protocol name should be treated case-insensitively.null
.public String getHost()
null
.public RepositoryPolicy getPolicy(boolean snapshot)
snapshot
- true
to retrieve the snapshot policy, false
to retrieve the release policy.null
.public Proxy getProxy()
null
if none.public Authentication getAuthentication()
null
if none.public List<RemoteRepository> getMirroredRepositories()
null
.public boolean isRepositoryManager()
true
if this repository is a repository manager, false
otherwise.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.