Class DefaultMirrorSelector

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.maven.settings.Mirror getMirror​(org.apache.maven.artifact.repository.ArtifactRepository repository, java.util.List<org.apache.maven.settings.Mirror> mirrors)
      Determines the mirror for the specified repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMirrorSelector

        public DefaultMirrorSelector()
    • Method Detail

      • getMirror

        public org.apache.maven.settings.Mirror getMirror​(org.apache.maven.artifact.repository.ArtifactRepository repository,
                                                          java.util.List<org.apache.maven.settings.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.