Package org.apache.maven.repository
Class DefaultMirrorSelector
java.lang.Object
org.apache.maven.repository.DefaultMirrorSelector
- All Implemented Interfaces:
MirrorSelector
@Named
@Singleton
@Deprecated
public class DefaultMirrorSelector
extends Object
implements MirrorSelector
Deprecated.
DefaultMirrorSelector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMirror
(ArtifactRepository repository, List<Mirror> mirrors) Deprecated.Determines the mirror for the specified repository.(package private) static boolean
isExternalHttpRepo
(ArtifactRepository originalRepository) Deprecated.Checks the URL to see if this repository refers to a non-localhost repository using HTTP.(package private) static boolean
isExternalRepo
(ArtifactRepository originalRepository) Deprecated.Checks the URL to see if this repository refers to an external repositoryprivate static boolean
Deprecated.(package private) static boolean
matchesLayout
(String repoLayout, String mirrorLayout) Deprecated.Checks whether the layouts configured for a mirror match with the layout of the repository.(package private) static boolean
matchesLayout
(ArtifactRepository repository, Mirror mirror) Deprecated.(package private) static boolean
matchPattern
(ArtifactRepository originalRepository, String pattern) Deprecated.This method checks if the pattern matches the originalRepository.
-
Field Details
-
WILDCARD
Deprecated.- See Also:
-
EXTERNAL_WILDCARD
Deprecated.- See Also:
-
EXTERNAL_HTTP_WILDCARD
Deprecated.- See Also:
-
-
Constructor Details
-
DefaultMirrorSelector
public DefaultMirrorSelector()Deprecated.
-
-
Method Details
-
getMirror
Deprecated.Description copied from interface:MirrorSelector
Determines the mirror for the specified repository.- Specified by:
getMirror
in interfaceMirrorSelector
- Parameters:
repository
- The repository to determine the mirror for, must not benull
.mirrors
- The available mirrors, may benull
.- Returns:
- The mirror specification for the repository or
null
if no mirror matched.
-
matchPattern
Deprecated.This method checks if the pattern matches the originalRepository. Valid patterns:*
= everything,external:*
= everything not on the localhost and not file based,external:http:*
= any repository not on the localhost using HTTP,repo,repo1
=repo
orrepo1
,*,!repo1
= everything exceptrepo1
.
- Parameters:
originalRepository
- to compare for a match.pattern
- used for match.- Returns:
- true if the repository is a match to this pattern.
-
isExternalRepo
Deprecated.Checks the URL to see if this repository refers to an external repository- Parameters:
originalRepository
-- Returns:
- true if external.
-
isLocal
Deprecated. -
isExternalHttpRepo
Deprecated.Checks the URL to see if this repository refers to a non-localhost repository using HTTP.- Parameters:
originalRepository
-- Returns:
- true if external.
-
matchesLayout
Deprecated. -
matchesLayout
Deprecated.Checks whether the layouts configured for a mirror match with the layout of the repository.- Parameters:
repoLayout
- The layout of the repository, may benull
.mirrorLayout
- The layouts supported by the mirror, may benull
.- Returns:
true
if the layouts associated with the mirror match the layout of the original repository,false
otherwise.
-