Package org.dspace.statistics
Class GeoIpService
- java.lang.Object
-
- org.dspace.statistics.GeoIpService
-
public class GeoIpService extends Object
Service that handle the GeoIP database file.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description GeoIpService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.maxmind.geoip2.DatabaseReadergetDatabaseReader()Returns an instance ofDatabaseReaderbased on the configured db file, if any.
-
-
-
Method Detail
-
getDatabaseReader
public com.maxmind.geoip2.DatabaseReader getDatabaseReader() throws IllegalStateExceptionReturns an instance ofDatabaseReaderbased on the configured db file, if any.- Returns:
- the Database reader
- Throws:
IllegalStateException- if the db file is not configured correctly
-
-