Package org.graylog.plugins.map.geoip
Interface IPLocationDatabaseAdapter
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
IPinfoIPLocationDatabaseAdapter,MaxMindIPLocationDatabaseAdapter
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 Summary
Modifier and TypeMethodDescriptionipInfoASN(InetAddress ipAddress) ipInfoStandardLocation(InetAddress ipAddress) com.maxmind.geoip2.model.AsnResponsemaxMindASN(InetAddress ipAddress) com.maxmind.geoip2.model.CityResponsemaxMindCity(InetAddress ipAddress) com.maxmind.geoip2.model.CountryResponsemaxMindCountry(InetAddress ipAddress)
-
Method Details
-
maxMindCity
com.maxmind.geoip2.model.CityResponse maxMindCity(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
maxMindCountry
com.maxmind.geoip2.model.CountryResponse maxMindCountry(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
maxMindASN
com.maxmind.geoip2.model.AsnResponse maxMindASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
ipInfoStandardLocation
IPinfoStandardLocation ipInfoStandardLocation(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException - Throws:
IOExceptioncom.maxmind.geoip2.exception.AddressNotFoundException
-
ipInfoASN
IPinfoASN ipInfoASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException - Throws:
IOExceptioncom.maxmind.geoip2.exception.AddressNotFoundException
-