|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.repository.RemoteRepository
public class RemoteRepository
A repository on a remote server.
Constructor Summary | |
---|---|
RemoteRepository()
Creates a new repository using the default release/snapshot policies. |
|
RemoteRepository(RemoteRepository repository)
Creates a shallow copy of the specified repository. |
|
RemoteRepository(java.lang.String id,
java.lang.String type,
java.lang.String url)
Creates a new repository with the specified properties and the default policies. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Authentication |
getAuthentication()
Gets the authentication that has been selected for this repository. |
java.lang.String |
getContentType()
Gets the type of the repository, for example "default". |
java.lang.String |
getHost()
Gets the host part from the repository's URL. |
java.lang.String |
getId()
Gets the identifier of this repository. |
java.util.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. |
java.lang.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. |
java.lang.String |
getUrl()
Gets the (base) URL of this repository. |
int |
hashCode()
|
boolean |
isRepositoryManager()
Indicates whether this repository refers to a repository manager or not. |
RemoteRepository |
setAuthentication(Authentication authentication)
Sets the authentication to use in order to access this repository. |
RemoteRepository |
setContentType(java.lang.String type)
Sets the type of this repository, e.g. |
RemoteRepository |
setId(java.lang.String id)
Sets the identifier of this repository. |
RemoteRepository |
setMirroredRepositories(java.util.List<RemoteRepository> mirroredRepositories)
Sets the repositories being mirrored by this repository. |
RemoteRepository |
setPolicy(boolean snapshot,
RepositoryPolicy policy)
Sets the policy to apply for snapshot/release artifacts. |
RemoteRepository |
setProxy(Proxy proxy)
Sets the proxy to use in order to access this repository. |
RemoteRepository |
setRepositoryManager(boolean repositoryManager)
Marks this repository as a repository manager or not. |
RemoteRepository |
setUrl(java.lang.String url)
Sets the (base) URL of this repository. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteRepository()
public RemoteRepository(RemoteRepository repository)
repository
- The repository to copy, must not be null
.public RemoteRepository(java.lang.String id, java.lang.String type, java.lang.String url)
id
- The identifier of the repository, may be null
.type
- The type of the repository, may be null
.url
- The (base) URL of the repository, may be null
.Method Detail |
---|
public java.lang.String getId()
ArtifactRepository
getId
in interface ArtifactRepository
null
.public RemoteRepository setId(java.lang.String id)
id
- The identifier of this repository, may be null
.
null
.public java.lang.String getContentType()
ArtifactRepository
getContentType
in interface ArtifactRepository
null
.public RemoteRepository setContentType(java.lang.String type)
type
- The type of this repository, may be null
.
null
.public java.lang.String getUrl()
null
.public RemoteRepository setUrl(java.lang.String url)
url
- The URL of this repository, may be null
.
null
.public java.lang.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 java.lang.String getHost()
null
.public RepositoryPolicy getPolicy(boolean snapshot)
snapshot
- true
to retrieve the snapshot policy, false
to retrieve the release policy.
null
.public RemoteRepository setPolicy(boolean snapshot, RepositoryPolicy policy)
snapshot
- true
to set the snapshot policy, false
to set the release policy.policy
- The repository policy to set, may be null
to use a default policy.
null
.public Proxy getProxy()
null
if none.public RemoteRepository setProxy(Proxy proxy)
proxy
- The proxy to use, may be null
.
null
.public Authentication getAuthentication()
null
if none.public RemoteRepository setAuthentication(Authentication authentication)
authentication
- The authentication to use, may be null
.
null
.public java.util.List<RemoteRepository> getMirroredRepositories()
null
.public RemoteRepository setMirroredRepositories(java.util.List<RemoteRepository> mirroredRepositories)
mirroredRepositories
- The repositories being mirrored by this repository, may be null
.
null
.public boolean isRepositoryManager()
true
if this repository is a repository manager, false
otherwise.public RemoteRepository setRepositoryManager(boolean repositoryManager)
repositoryManager
- true
if this repository points at a repository manager, false
if the
repository is just serving static contents.
null
.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |