public final class GeoIPUtils extends Object
Constructor and Description |
---|
GeoIPUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap(com.pushtechnology.diffusion.whois.geoip.GeoIPManager manager) |
static GeoIPData |
getGeoIPData(InetAddress address)
Returns a GeoIPData object, which contains as well as locale,
the latitude and longitude.
|
static GeoIPData |
getGeoIPData(String address)
Returns a GeoIPData object, which contains as well as locale,
the latitude and longitude.
|
static Locale |
getLocale(String address)
Returns the Java locale object based on an IP Address, this will have
country code and county name set.
|
boolean |
isEnabled()
Indicates whether the GeoIP service is enabled.
|
public static void bootstrap(com.pushtechnology.diffusion.whois.geoip.GeoIPManager manager)
public boolean isEnabled()
public static Locale getLocale(String address)
address
- the addresspublic static GeoIPData getGeoIPData(String address)
address
- the addresspublic static GeoIPData getGeoIPData(InetAddress address)
address
- the addressCopyright © 2016 Push Technology Ltd. All Rights Reserved.