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 Details

    • GeoIpService

      public GeoIpService()
  • Method Details

    • getDatabaseReader

      public com.maxmind.geoip2.DatabaseReader getDatabaseReader() throws IllegalStateException
      Returns an instance of DatabaseReader based on the configured db file, if any.
      Returns:
      the Database reader
      Throws:
      IllegalStateException - if the db file is not configured correctly