public final class DefaultMirrorSelector extends Object implements org.eclipse.aether.repository.MirrorSelector
| Constructor and Description |
|---|
DefaultMirrorSelector() |
| Modifier and Type | Method and Description |
|---|---|
DefaultMirrorSelector |
add(String id,
String url,
String type,
boolean repositoryManager,
Collection<String> mirrorOfIds,
Collection<String> mirrorOfTypes)
Adds the specified mirror to this selector.
|
DefaultMirrorSelector |
add(String id,
String url,
String type,
boolean repositoryManager,
String mirrorOfIds,
String mirrorOfTypes)
Adds the specified mirror to this selector.
|
org.eclipse.aether.repository.RemoteRepository |
getMirror(org.eclipse.aether.repository.RemoteRepository repository) |
public DefaultMirrorSelector add(String id, String url, String type, boolean repositoryManager, String mirrorOfIds, String mirrorOfTypes)
id - The identifier of the mirror, may be null.url - The URL of the mirror, may be null.type - The content type of the mirror, may be null.repositoryManager - A flag whether the mirror is a repository manager or a simple server.mirrorOfIds - The identifier(s) of remote repositories to mirror, may be null. Multiple identifiers
can be separated by comma (',') and surrounding whitespace is trimmed. Additionally the wildcards "*"
and "external:*" can be used to match all (external) repositories, prefixing a repo id with an
exclamation mark allows to express an exclusion. For example "external:*,!central".mirrorOfTypes - The content type(s) of remote repositories to mirror, may be null or empty to match
any content type. Multiple types can be separated by comma (',') and surrounding whitespace is
trimmed. The wildcard "*" and the "!" negation syntax are also supported. For example "*,!p2".null.public DefaultMirrorSelector add(String id, String url, String type, boolean repositoryManager, Collection<String> mirrorOfIds, Collection<String> mirrorOfTypes)
id - The identifier of the mirror, may be null.url - The URL of the mirror, may be null.type - The content type of the mirror, may be null.repositoryManager - A flag whether the mirror is a repository manager or a simple server.mirrorOfIds - The identifier(s) of remote repositories to mirror, may be null. The wildcards "*" and
"external:*" can be used to match all (external) repositories, prefixing a repo id with an exclamation
mark allows to express an exclusion. For example "external:*", "!central".mirrorOfTypes - The content type(s) of remote repositories to mirror, may be null or empty to match
any content type. The wildcard "*" and the "!" negation syntax are also supported. For example "*",
"!p2".null.public org.eclipse.aether.repository.RemoteRepository getMirror(org.eclipse.aether.repository.RemoteRepository repository)
getMirror in interface org.eclipse.aether.repository.MirrorSelectorCopyright © 2010-2016 The Eclipse Foundation. All Rights Reserved.