Class DefaultMirrorSelector
- java.lang.Object
-
- org.eclipse.aether.util.repository.DefaultMirrorSelector
-
- All Implemented Interfaces:
org.eclipse.aether.repository.MirrorSelector
public final class DefaultMirrorSelector extends java.lang.Object implements org.eclipse.aether.repository.MirrorSelector
A simple mirror selector that selects mirrors based on repository identifiers.
-
-
Constructor Summary
Constructors Constructor Description DefaultMirrorSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DefaultMirrorSelector
add(java.lang.String id, java.lang.String url, java.lang.String type, boolean repositoryManager, boolean blocked, java.lang.String mirrorOfIds, java.lang.String mirrorOfTypes)
Adds the specified mirror to this selector.DefaultMirrorSelector
add(java.lang.String id, java.lang.String url, java.lang.String type, boolean repositoryManager, java.lang.String mirrorOfIds, java.lang.String mirrorOfTypes)
Deprecated.org.eclipse.aether.repository.RemoteRepository
getMirror(org.eclipse.aether.repository.RemoteRepository repository)
-
-
-
Constructor Detail
-
DefaultMirrorSelector
public DefaultMirrorSelector()
-
-
Method Detail
-
add
@Deprecated public DefaultMirrorSelector add(java.lang.String id, java.lang.String url, java.lang.String type, boolean repositoryManager, java.lang.String mirrorOfIds, java.lang.String mirrorOfTypes)
Deprecated.
-
add
public DefaultMirrorSelector add(java.lang.String id, java.lang.String url, java.lang.String type, boolean repositoryManager, boolean blocked, java.lang.String mirrorOfIds, java.lang.String mirrorOfTypes)
Adds the specified mirror to this selector.- Parameters:
id
- The identifier of the mirror, must not benull
.url
- The URL of the mirror, must not benull
.type
- The content type of the mirror, must not benull
.repositoryManager
- A flag whether the mirror is a repository manager or a simple server.blocked
- A flag whether the mirror is blocked from performing any download requests.mirrorOfIds
- The identifier(s) of remote repositories to mirror, must not benull
. Multiple identifiers can be separated by comma and additionally the wildcards "*", "external:http:*" 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 benull
or empty to match any content type. Similar to the repo id specification, multiple types can be comma-separated, the wildcard "*" and the "!" negation syntax are supported. For example "*,!p2".- Returns:
- This selector for chaining, never
null
.
-
getMirror
public org.eclipse.aether.repository.RemoteRepository getMirror(org.eclipse.aether.repository.RemoteRepository repository)
- Specified by:
getMirror
in interfaceorg.eclipse.aether.repository.MirrorSelector
-
-