Class DefaultMirrorSelector

java.lang.Object
org.apache.maven.repository.DefaultMirrorSelector
All Implemented Interfaces:
MirrorSelector

@Named @Singleton public class DefaultMirrorSelector extends Object implements MirrorSelector
DefaultMirrorSelector
  • Constructor Details

    • DefaultMirrorSelector

      public DefaultMirrorSelector()
  • Method Details

    • getMirror

      public Mirror getMirror(ArtifactRepository repository, List<Mirror> mirrors)
      Description copied from interface: MirrorSelector
      Determines the mirror for the specified repository.
      Specified by:
      getMirror in interface MirrorSelector
      Parameters:
      repository - The repository to determine the mirror for, must not be null.
      mirrors - The available mirrors, may be null.
      Returns:
      The mirror specification for the repository or null if no mirror matched.