Package org.ctan.site.services.mirrors
Class MirrorService
java.lang.Object
org.ctan.site.services.mirrors.MirrorService
The class
MirrorService contains the service to deal with
mirrors.-
Constructor Summary
ConstructorsConstructorDescriptionMirrorService(@NonNull MirrorStore store) This is the constructor for the classMirrorService. -
Method Summary
Modifier and TypeMethodDescriptionfindAll()The methodfindAllprovides means to retrieve all mirrors.mapContinent(String name) The methodmapContinentprovides means to get a connected name of the continent.mapCountry(String name) The methodmapCountryprovides means to get a connected name of the country.
-
Constructor Details
-
MirrorService
This is the constructor for the classMirrorService.- Parameters:
store- the underlying store- Throws:
IOException- in case of an I/O error
-
-
Method Details
-
findAll
The methodfindAllprovides means to retrieve all mirrors.- Returns:
- the collection of mirrors
-
mapContinent
The methodmapContinentprovides 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
The methodmapCountryprovides 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
-