Class MirrorService

java.lang.Object
org.ctan.site.services.mirrors.MirrorService

public class MirrorService extends Object
The class MirrorService contains the service to deal with mirrors.
  • Constructor Details

    • MirrorService

      public MirrorService(@NonNull @NonNull MirrorStore store) throws IOException
      This is the constructor for the class MirrorService.
      Parameters:
      store - the underlying store
      Throws:
      IOException - in case of an I/O error
  • Method Details

    • findAll

      public Collection<Mirrors> findAll()
      The method findAll provides means to retrieve all mirrors.
      Returns:
      the collection of mirrors
    • mapContinent

      public String mapContinent(String name)
      The method mapContinent provides means to get a connected name of the continent. This means that spaces are replaced by minus.
      Parameters:
      name - the internal name of the continent
      Returns:
      the continent name
    • mapCountry

      public String mapCountry(String name)
      The method mapCountry provides means to get a connected name of the country. This means that spaces are replaced by minus.
      Parameters:
      name - the internal name of the country
      Returns:
      The country name