Class IspResponse


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

    • IspResponse

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

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

      @Deprecated public IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String organization, Network network)
      Deprecated.
      This constructor exists for backwards compatibility. Will be removed in the next major release.
    • IspResponse

      public IspResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network)
    • IspResponse

      public IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network)
    • IspResponse

      public IspResponse(IspResponse response, String ipAddress, Network network)
  • 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.