Package org.localify.common.geoip
Interface GeoIpService
- All Known Implementing Classes:
MaxmindGeoIp,NoOpGeoIp
public interface GeoIpService
Service for getting GeoIP details.
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeoIpDetailsgetDetails(String ipAddress) Gets the GeoIP details for a given IP address.getDetails(String ipAddress, boolean permitFallback) Gets the GeoIP details for a given IP address.
-
Method Details
-
getDetails
Gets the GeoIP details for a given IP address.- Parameters:
ipAddress- The IP address.permitFallback- Whether to permit fallback to a default location if the IP address is not found.- Returns:
- The GeoIP details, or null if not found and fallback is not permitted.
-
getDetails
Gets the GeoIP details for a given IP address.- Parameters:
ipAddress- The IP address.- Returns:
- The GeoIP details, or null if not found.
-