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 be null
url - the URL of the mirror, must not be null
type - the content type of the mirror, must not be null
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 be null. 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 be null 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