Class IpAddress

  • All Implemented Interfaces:
    IpAddressInterface

    public final class IpAddress
    extends com.maxmind.geoip2.model.InsightsResponse
    implements IpAddressInterface
    This class contains minFraud response data related to the IP location
    • Constructor Summary

      Constructors 
      Constructor 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<com.maxmind.geoip2.record.Subdivision> subdivisions, com.maxmind.geoip2.record.Traits traits)  
    • Constructor Detail

      • IpAddress

        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)
      • IpAddress

        public IpAddress()
    • Method Detail

      • getCountry

        public GeoIp2Country getCountry()
        Overrides:
        getCountry in class com.maxmind.geoip2.model.AbstractCountryResponse
        Returns:
        Country record for the requested IP address. This object represents the country where MaxMind believes the end user is located.
      • getLocation

        public GeoIp2Location getLocation()
        Overrides:
        getLocation in class com.maxmind.geoip2.model.AbstractCityResponse
        Returns:
        Location record for the requested IP address.
      • getRisk

        public Double getRisk()
        Specified by:
        getRisk in interface IpAddressInterface
        Returns:
        The risk associated with the IP address. The value ranges from 0.01 to 99. A higher score indicates a higher risk.