public class IPinfoIPLocationDatabaseAdapter extends Object implements IPLocationDatabaseAdapter
Reader wrapper to be able to support IPinfo database files. The IPinfo databases use a different
database type identifier and a different data format than the MaxMind databases.| Constructor and Description |
|---|
IPinfoIPLocationDatabaseAdapter(File databaseFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IPinfoASN |
ipInfoASN(InetAddress ipAddress) |
IPinfoStandardLocation |
ipInfoStandardLocation(InetAddress ipAddress) |
com.maxmind.geoip2.model.AsnResponse |
maxMindASN(InetAddress ipAddress) |
com.maxmind.geoip2.model.CityResponse |
maxMindCity(InetAddress ipAddress) |
com.maxmind.geoip2.model.CountryResponse |
maxMindCountry(InetAddress ipAddress) |
public IPinfoIPLocationDatabaseAdapter(File databaseFile) throws IOException
IOExceptionpublic IPinfoStandardLocation ipInfoStandardLocation(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException
ipInfoStandardLocation in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.AddressNotFoundExceptionpublic IPinfoASN ipInfoASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.AddressNotFoundException
ipInfoASN in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.AddressNotFoundExceptionpublic com.maxmind.geoip2.model.AsnResponse maxMindASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
maxMindASN in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.GeoIp2Exceptionpublic com.maxmind.geoip2.model.CountryResponse maxMindCountry(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
maxMindCountry in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.GeoIp2Exceptionpublic com.maxmind.geoip2.model.CityResponse maxMindCity(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
maxMindCity in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.GeoIp2Exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.