public final class IpAddress extends com.maxmind.geoip2.model.InsightsResponse implements IpAddressInterface
Constructor and Description |
---|
IpAddress() |
IpAddress(com.maxmind.geoip2.record.City city,
com.maxmind.geoip2.record.Continent continent,
GeoIp2Country country,
GeoIp2Location location,
com.maxmind.geoip2.record.MaxMind maxmind,
com.maxmind.geoip2.record.Postal postal,
com.maxmind.geoip2.record.Country registeredCountry,
com.maxmind.geoip2.record.RepresentedCountry representedCountry,
Double risk,
List<IpRiskReason> riskReasons,
List<com.maxmind.geoip2.record.Subdivision> subdivisions,
com.maxmind.geoip2.record.Traits traits) |
IpAddress(com.maxmind.geoip2.record.City city,
com.maxmind.geoip2.record.Continent continent,
GeoIp2Country country,
GeoIp2Location location,
com.maxmind.geoip2.record.MaxMind maxmind,
com.maxmind.geoip2.record.Postal postal,
com.maxmind.geoip2.record.Country registeredCountry,
com.maxmind.geoip2.record.RepresentedCountry representedCountry,
Double risk,
List<com.maxmind.geoip2.record.Subdivision> subdivisions,
com.maxmind.geoip2.record.Traits traits)
Deprecated.
This constructor only exists for backward compatibility
and will be removed in the next major release.
|
Modifier and Type | Method and Description |
---|---|
GeoIp2Country |
getCountry() |
GeoIp2Location |
getLocation() |
Double |
getRisk() |
List<IpRiskReason> |
getRiskReasons() |
getCity, getLeastSpecificSubdivision, getMostSpecificSubdivision, getPostal, getSubdivisions
public IpAddress(com.maxmind.geoip2.record.City city, com.maxmind.geoip2.record.Continent continent, GeoIp2Country country, GeoIp2Location location, com.maxmind.geoip2.record.MaxMind maxmind, com.maxmind.geoip2.record.Postal postal, com.maxmind.geoip2.record.Country registeredCountry, com.maxmind.geoip2.record.RepresentedCountry representedCountry, Double risk, List<IpRiskReason> riskReasons, List<com.maxmind.geoip2.record.Subdivision> subdivisions, com.maxmind.geoip2.record.Traits traits)
public IpAddress(com.maxmind.geoip2.record.City city, com.maxmind.geoip2.record.Continent continent, GeoIp2Country country, GeoIp2Location location, com.maxmind.geoip2.record.MaxMind maxmind, com.maxmind.geoip2.record.Postal postal, com.maxmind.geoip2.record.Country registeredCountry, com.maxmind.geoip2.record.RepresentedCountry representedCountry, Double risk, List<com.maxmind.geoip2.record.Subdivision> subdivisions, com.maxmind.geoip2.record.Traits traits)
city
- The city information.continent
- The continent information.country
- The country information.location
- The location information.maxmind
- MaxMind-specific information.postal
- The postal information.registeredCountry
- The information about the country where the IP was registered.representedCountry
- The represented country, e.g., for military bases in other countries.risk
- The IP risk.subdivisions
- The list of subdivisions.traits
- Information about various other IP traits.public IpAddress()
public GeoIp2Country getCountry()
getCountry
in class com.maxmind.geoip2.model.AbstractCountryResponse
public GeoIp2Location getLocation()
getLocation
in class com.maxmind.geoip2.model.AbstractCityResponse
public Double getRisk()
getRisk
in interface IpAddressInterface
public final List<IpRiskReason> getRiskReasons()
Copyright © 2021 MaxMind, Inc.. All rights reserved.