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.
|
Optional<AnonymousIpResponse> |
tryAnonymousIp(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Anonymous IP.
|
Optional<AsnResponse> |
tryAsn(InetAddress ipAddress)
Look up an IP address in a GeoLite2 ASN database.
|
Optional<CityResponse> |
tryCity(InetAddress ipAddress) |
Optional<ConnectionTypeResponse> |
tryConnectionType(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Connection Type database.
|
Optional<CountryResponse> |
tryCountry(InetAddress ipAddress) |
Optional<DomainResponse> |
tryDomain(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Domain database.
|
Optional<EnterpriseResponse> |
tryEnterprise(InetAddress ipAddress)
Look up an IP address in a GeoIP2 Enterprise database.
|
Optional<IspResponse> |
tryIsp(InetAddress ipAddress)
Look up an IP address in a GeoIP2 ISP database.
|
city, country
Optional<CountryResponse> tryCountry(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 errorOptional<CityResponse> tryCity(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 errorAnonymousIpResponse 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 errorOptional<AnonymousIpResponse> tryAnonymousIp(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 errorOptional<AsnResponse> tryAsn(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 errorOptional<ConnectionTypeResponse> tryConnectionType(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 errorOptional<DomainResponse> tryDomain(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 errorOptional<EnterpriseResponse> tryEnterprise(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 errorOptional<IspResponse> tryIsp(InetAddress ipAddress) throws IOException, GeoIp2Exception
ipAddress
- IPv4 or IPv6 address to lookup or empty if the IP address is not in the DB.GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO errorCopyright © 2020 MaxMind, Inc.. All rights reserved.