java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AbstractCountryResponse
com.maxmind.geoip2.model.AbstractCityResponse
com.maxmind.geoip2.model.EnterpriseResponse
This class provides a model for the data returned by the GeoIP2 Enterprise database
-
Constructor Summary
ConstructorsConstructorDescriptionEnterpriseResponse(EnterpriseResponse response, String ipAddress, Network network, List<String> locales) Constructs an instance ofEnterpriseResponsewith only required parameters.EnterpriseResponse(City city, Continent continent, Country country, Location location, MaxMind maxmind, Postal postal, Country registeredCountry, RepresentedCountry representedCountry, ArrayList<Subdivision> subdivisions, Traits traits) Constructs an instance ofEnterpriseResponsewith the specified parameters. -
Method Summary
Methods inherited from class com.maxmind.geoip2.model.AbstractCityResponse
getCity, getLeastSpecificSubdivision, getLocation, getMostSpecificSubdivision, getPostal, getSubdivisionsMethods 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
-
EnterpriseResponse
public EnterpriseResponse(City city, Continent continent, Country country, Location location, MaxMind maxmind, Postal postal, Country registeredCountry, RepresentedCountry representedCountry, ArrayList<Subdivision> subdivisions, Traits traits) Constructs an instance ofEnterpriseResponsewith the specified parameters.- Parameters:
city- citycontinent- continentcountry- countrylocation- locationmaxmind- maxmind record for the responsepostal- postalregisteredCountry- registered countryrepresentedCountry- represented countrysubdivisions- subdivisionstraits- traits
-
EnterpriseResponse
public EnterpriseResponse(EnterpriseResponse response, String ipAddress, Network network, List<String> locales) Constructs an instance ofEnterpriseResponsewith only required 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
-