- All Known Subinterfaces:
DatabaseProvider
,WebServiceProvider
- All Known Implementing Classes:
DatabaseReader
,WebServiceClient
public interface GeoIp2Provider
Interface for GeoIP2 providers.
-
Method Summary
-
Method Details
-
country
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.- Returns:
- A Country model for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO error
-
city
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.- Returns:
- A City model for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO error
-