java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AbstractCountryResponse
com.maxmind.geoip2.model.CountryResponse
This class provides a model for the data returned by the Country web service
and the Country database.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCountryResponse(CountryResponse response, String ipAddress, Network network, List<String> locales) Constructs an instance ofCountryResponsewith the specified parameters.CountryResponse(Continent continent, Country country, MaxMind maxmind, Country registeredCountry, RepresentedCountry representedCountry, Traits traits) Constructs an instance ofCountryResponsewith the specified parameters. -
Method Summary
Methods inherited from class com.maxmind.geoip2.model.AbstractCountryResponse
getContinent, getCountry, getMaxMind, getRegisteredCountry, getRepresentedCountry, getTraitsMethods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
CountryResponse
public CountryResponse(Continent continent, Country country, MaxMind maxmind, Country registeredCountry, RepresentedCountry representedCountry, Traits traits) Constructs an instance ofCountryResponsewith the specified parameters.- Parameters:
continent- the continentcountry- the countrymaxmind- the MaxMind recordregisteredCountry- the registered countryrepresentedCountry- the represented countrytraits- the traits
-
CountryResponse
public CountryResponse(CountryResponse response, String ipAddress, Network network, List<String> locales) Constructs an instance ofCountryResponsewith the specified parameters.- Parameters:
response- the responseipAddress- the IP address that the data in the model is for.network- the network associated with the record.locales- the locales
-