Interface IPLocationDatabaseAdapter

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
IPinfoIPLocationDatabaseAdapter, MaxMindIPLocationDatabaseAdapter

public interface IPLocationDatabaseAdapter extends Closeable
Small abstraction layer for the different location databases from MaxMind and IPinfo to make them usable in a single lookup data adapter until we create separate adapters for the different databases.
  • Method Details

    • maxMindCity

      com.maxmind.geoip2.model.CityResponse maxMindCity(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
      Throws:
      IOException
      com.maxmind.geoip2.exception.GeoIp2Exception
    • maxMindCountry

      com.maxmind.geoip2.model.CountryResponse maxMindCountry(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
      Throws:
      IOException
      com.maxmind.geoip2.exception.GeoIp2Exception
    • maxMindASN

      com.maxmind.geoip2.model.AsnResponse maxMindASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
      Throws:
      IOException
      com.maxmind.geoip2.exception.GeoIp2Exception
    • ipInfoStandardLocation

      IPinfoStandardLocation ipInfoStandardLocation(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException
      Throws:
      IOException
      com.maxmind.geoip2.exception.AddressNotFoundException
    • ipInfoASN

      IPinfoASN ipInfoASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException
      Throws:
      IOException
      com.maxmind.geoip2.exception.AddressNotFoundException