public class MaxMindIPLocationDatabaseAdapter extends Object implements IPLocationDatabaseAdapter
| Constructor and Description |
|---|
MaxMindIPLocationDatabaseAdapter(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 MaxMindIPLocationDatabaseAdapter(File databaseFile) throws IOException
IOExceptionpublic com.maxmind.geoip2.model.CityResponse maxMindCity(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
maxMindCity 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.AsnResponse maxMindASN(InetAddress ipAddress) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception
maxMindASN in interface IPLocationDatabaseAdapterIOExceptioncom.maxmind.geoip2.exception.GeoIp2Exceptionpublic 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.