Interface MirrorSelector

  • All Known Implementing Classes:
    DefaultMirrorSelector

    public interface MirrorSelector
    Handles the selection of mirrors for repositories.
    Author:
    Benjamin Bentmann
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • getMirror

        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.
        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.