Package org.dspace.statistics
Class GeoIpService
java.lang.Object
org.dspace.statistics.GeoIpService
Service that handle the GeoIP database file.
- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.maxmind.geoip2.DatabaseReaderReturns an instance ofDatabaseReaderbased on the configured db file, if any.
-
Constructor Details
-
GeoIpService
public GeoIpService()
-
-
Method Details
-
getDatabaseReader
Returns an instance ofDatabaseReaderbased on the configured db file, if any.- Returns:
- the Database reader
- Throws:
IllegalStateException- if the db file is not configured correctly
-