Class AsnResponse

java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AsnResponse
Direct Known Subclasses:
IspResponse

public class AsnResponse extends AbstractResponse
This class provides the GeoLite2 ASN model.
  • Constructor Details

  • Method Details

    • getAutonomousSystemNumber

      public Long getAutonomousSystemNumber()
      Returns:
      The autonomous system number associated with the IP address.
    • getAutonomousSystemOrganization

      public String getAutonomousSystemOrganization()
      Returns:
      The organization associated with the registered autonomous system number for the IP address
    • getIpAddress

      public String getIpAddress()
      Returns:
      The IP address that the data in the model is for.
    • getNetwork

      public Network getNetwork()
      Returns:
      The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.