Package org.graylog.plugins.map.geoip
Class MaxMindIPLocationDatabaseAdapter
java.lang.Object
org.graylog.plugins.map.geoip.MaxMindIPLocationDatabaseAdapter
- All Implemented Interfaces:
Closeable,AutoCloseable,IPLocationDatabaseAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()ipInfoASN(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)
-
Constructor Details
-
MaxMindIPLocationDatabaseAdapter
- Throws:
IOException
-
-
Method Details
-
maxMindCity
public com.maxmind.geoip2.model.CityResponse maxMindCity(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Specified by:
maxMindCityin interfaceIPLocationDatabaseAdapter- Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
maxMindCountry
public com.maxmind.geoip2.model.CountryResponse maxMindCountry(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Specified by:
maxMindCountryin interfaceIPLocationDatabaseAdapter- Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
maxMindASN
public com.maxmind.geoip2.model.AsnResponse maxMindASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception - Specified by:
maxMindASNin interfaceIPLocationDatabaseAdapter- Throws:
IOExceptioncom.maxmind.geoip2.exception.GeoIp2Exception
-
ipInfoStandardLocation
public IPinfoStandardLocation ipInfoStandardLocation(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException - Specified by:
ipInfoStandardLocationin interfaceIPLocationDatabaseAdapter- Throws:
IOExceptioncom.maxmind.geoip2.exception.AddressNotFoundException
-
ipInfoASN
public IPinfoASN ipInfoASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException - Specified by:
ipInfoASNin interfaceIPLocationDatabaseAdapter- Throws:
IOExceptioncom.maxmind.geoip2.exception.AddressNotFoundException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-