public static final class RemoteRepository.Builder extends Object
| Constructor and Description |
|---|
RemoteRepository.Builder(RemoteRepository prototype)
Creates a new repository builder which uses the specified remote repository as a prototype for the new one.
|
RemoteRepository.Builder(String id,
String type,
String url)
Creates a new repository builder.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteRepository.Builder |
addMirroredRepository(RemoteRepository mirroredRepository)
Adds the specified repository to the list of repositories being mirrored by the repository.
|
RemoteRepository |
build()
Builds a new remote repository from the current values of this builder.
|
RemoteRepository.Builder |
setAuthentication(Authentication authentication)
Sets the authentication to use in order to access the repository.
|
RemoteRepository.Builder |
setContentType(String type)
Sets the type of the repository, e.g.
|
RemoteRepository.Builder |
setId(String id)
Sets the identifier of the repository.
|
RemoteRepository.Builder |
setMirroredRepositories(List<RemoteRepository> mirroredRepositories)
Sets the repositories being mirrored by the repository.
|
RemoteRepository.Builder |
setPolicy(RepositoryPolicy policy)
Sets the policy to apply for snapshot and release artifacts.
|
RemoteRepository.Builder |
setProxy(Proxy proxy)
Sets the proxy to use in order to access the repository.
|
RemoteRepository.Builder |
setReleasePolicy(RepositoryPolicy releasePolicy)
Sets the policy to apply for release artifacts.
|
RemoteRepository.Builder |
setRepositoryManager(boolean repositoryManager)
Marks the repository as a repository manager or not.
|
RemoteRepository.Builder |
setSnapshotPolicy(RepositoryPolicy snapshotPolicy)
Sets the policy to apply for snapshot artifacts.
|
RemoteRepository.Builder |
setUrl(String url)
Sets the (base) URL of the repository.
|
public RemoteRepository.Builder(String id, String type, 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.public RemoteRepository.Builder(RemoteRepository prototype)
prototype - The remote repository to use as prototype, must not be null.public RemoteRepository build()
null.public RemoteRepository.Builder setId(String id)
id - The identifier of the repository, may be null.null.public RemoteRepository.Builder setContentType(String type)
type - The type of the repository, may be null.null.public RemoteRepository.Builder setUrl(String url)
url - The URL of the repository, may be null.null.public RemoteRepository.Builder setPolicy(RepositoryPolicy policy)
policy - The repository policy to set, may be null to use a default policy.null.public RemoteRepository.Builder setReleasePolicy(RepositoryPolicy releasePolicy)
releasePolicy - The repository policy to set, may be null to use a default policy.null.public RemoteRepository.Builder setSnapshotPolicy(RepositoryPolicy snapshotPolicy)
snapshotPolicy - The repository policy to set, may be null to use a default policy.null.public RemoteRepository.Builder setProxy(Proxy proxy)
proxy - The proxy to use, may be null.null.public RemoteRepository.Builder setAuthentication(Authentication authentication)
authentication - The authentication to use, may be null.null.public RemoteRepository.Builder setMirroredRepositories(List<RemoteRepository> mirroredRepositories)
mirroredRepositories - The repositories being mirrored by the repository, may be null.null.public RemoteRepository.Builder addMirroredRepository(RemoteRepository mirroredRepository)
constructed from a prototype, the given repository
will be added to the list of mirrored repositories from the prototype.mirroredRepository - The repository being mirrored by the repository, may be null.null.public RemoteRepository.Builder setRepositoryManager(boolean repositoryManager)
repositoryManager - true if the repository points at a repository manager, false if the
repository is just serving static contents.null.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.