Class IspResponse


public class IspResponse extends AsnResponse
This class provides the GeoIP2 ISP model.
  • Constructor Details

    • IspResponse

      public IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network)
      Constructs an instance of IspResponse.
      Parameters:
      autonomousSystemNumber - the autonomous system number associated with the IP address
      autonomousSystemOrganization - the organization associated with the registered autonomous system number for the IP address
      ipAddress - the IP address that the data in the model is for
      isp - the name of the ISP associated with the IP address
      mobileCountryCode - the mobile country code (MCC) associated with the IP
      mobileNetworkCode - the mobile network code (MNC) associated with the IP
      organization - the name of the organization associated with the IP address
      network - the network associated with the record
    • IspResponse

      public IspResponse(IspResponse response, String ipAddress, Network network)
      Constructs an instance of IspResponse.
      Parameters:
      response - The AsnResponse object to copy.
      ipAddress - The IP address that the data in the model is for.
      network - The network associated with the record.
  • Method Details

    • getIsp

      public String getIsp()
      Returns:
      The name of the ISP associated with the IP address.
    • getMobileCountryCode

      public String getMobileCountryCode()
      Returns:
      The mobile country code (MCC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.
    • getMobileNetworkCode

      public String getMobileNetworkCode()
      Returns:
      The mobile network code (MNC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.
    • getOrganization

      public String getOrganization()
      Returns:
      The name of the organization associated with the IP address.