Class GeoIP2Helper
java.lang.Object
ecmwf.common.technical.GeoIP2Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.maxmind.geoip2.model.CityResponse
getCityResponse
(String hostName) Gets the city response.
-
Constructor Details
-
GeoIP2Helper
public GeoIP2Helper()
-
-
Method Details
-
getCityResponse
public static com.maxmind.geoip2.model.CityResponse getCityResponse(String hostName) throws IOException, com.maxmind.geoip2.exception.GeoIp2Exception Gets the city response.- Parameters:
hostName
- the host name- Returns:
- the city response
- Throws:
IOException
- Signals that an I/O exception has occurred.com.maxmind.geoip2.exception.GeoIp2Exception
- Signals that a GeoIP2 exception has occurred.
-