- All Superinterfaces:
GeoIp2Provider
- All Known Implementing Classes:
WebServiceClient
Interface for GeoIP2 web service providers.
-
Method Summary
Methods inherited from interface com.maxmind.geoip2.GeoIp2Provider
city, country
-
Method Details
-
country
- Returns:
- A Country model for the requesting IP address
- Throws:
GeoIp2Exception
- if there is an error from the web serviceIOException
- if an IO error happens during the request
-
city
- Returns:
- A City model for the requesting IP address
- Throws:
GeoIp2Exception
- if there is an error from the web serviceIOException
- if an IO error happens during the request
-
insights
- Returns:
- An Insights model for the requesting IP address
- Throws:
GeoIp2Exception
- if there is an error from the web serviceIOException
- if an IO error happens during the request
-
insights
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.- Returns:
- An Insight model for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IPIOException
- if there is an IO error
-