public interface DatabaseProvider extends GeoIp2Provider
Modifier and Type | Method and Description |
---|---|
AnonymousIpResponse |
anonymousIp(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Anonymous IP.
|
AsnResponse |
asn(InetAddress ipAddress)
Look up an IP address in a GeoLite2 ASN database.
|
ConnectionTypeResponse |
connectionType(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Connection Type database.
|
DomainResponse |
domain(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Domain database.
|
EnterpriseResponse |
enterprise(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Enterprise database.
|
IspResponse |
isp(InetAddress ipAddress)
Look up an IP address in a GeoIP2 ISP database.
|
city, country
AnonymousIpResponse anonymousIp(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorAsnResponse asn(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorConnectionTypeResponse connectionType(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorDomainResponse domain(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorEnterpriseResponse enterprise(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorIspResponse isp(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorCopyright © 2017 MaxMind, Inc.. All rights reserved.