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

    • AsnResponse

      @Deprecated public AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress)
      Deprecated.
      This constructor exists for backwards compatibility. Will be removed in the next major release.
    • AsnResponse

      public AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)
    • AsnResponse

      public AsnResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)
    • AsnResponse

      public AsnResponse(AsnResponse response, String ipAddress, Network network)
  • Method Details

    • getAutonomousSystemNumber

      public Integer 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.