Class GeoIpService


  • public class GeoIpService
    extends Object
    Service that handle the GeoIP database file.
    Author:
    Luca Giamminonni (luca.giamminonni at 4science.it)
    • Constructor Detail

      • GeoIpService

        public GeoIpService()
    • Method Detail

      • 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