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 methodfindAll
provides means to retrieve all mirrors.mapContinent
(String name) The methodmapContinent
provides means to get a connected name of the continent.mapCountry
(String name) The methodmapCountry
provides 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 methodfindAll
provides means to retrieve all mirrors.- Returns:
- the collection of mirrors
-
mapContinent
The methodmapContinent
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
The methodmapCountry
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
-