public static final class RemoteRepository.Builder extends java.lang.Object
| Constructor | Description |
|---|---|
Builder(java.lang.String id,
java.lang.String type,
java.lang.String url) |
Creates a new repository builder.
|
Builder(RemoteRepository prototype) |
Creates a new repository builder which uses the specified remote repository as a prototype for the new one.
|
| Modifier and Type | Method | 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(java.lang.String type) |
Sets the type of the repository, e.g.
|
RemoteRepository.Builder |
setId(java.lang.String id) |
Sets the identifier of the repository.
|
RemoteRepository.Builder |
setMirroredRepositories(java.util.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(java.lang.String url) |
Sets the (base) URL of the repository.
|
public Builder(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.public Builder(RemoteRepository prototype)
prototype - The remote repository to use as prototype, must not be null.public RemoteRepository build()
null.public RemoteRepository.Builder setId(java.lang.String id)
id - The identifier of the repository, may be null.null.public RemoteRepository.Builder setContentType(java.lang.String type)
type - The type of the repository, may be null.null.public RemoteRepository.Builder setUrl(java.lang.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(java.util.List<RemoteRepository> mirroredRepositories)
mirroredRepositories - The repositories being mirrored by the repository, may be null.null.public RemoteRepository.Builder addMirroredRepository(RemoteRepository mirroredRepository)
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.