Package com.maxmind.geoip2.model
Class IspResponse
java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AsnResponse
com.maxmind.geoip2.model.IspResponse
This class provides the GeoIP2 ISP model.
-
Constructor Summary
ConstructorDescriptionIspResponse
(IspResponse response, String ipAddress, Network network) IspResponse
(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String organization) Deprecated.This constructor exists for backwards compatibility.IspResponse
(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String organization, Network network) Deprecated.This constructor exists for backwards compatibility.IspResponse
(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) IspResponse
(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String organization, Network network) Deprecated.This constructor exists for backwards compatibility.IspResponse
(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) -
Method Summary
Methods inherited from class com.maxmind.geoip2.model.AsnResponse
getAutonomousSystemNumber, getAutonomousSystemOrganization, getIpAddress, getNetwork
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
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
-
IspResponse
-
IspResponse
-
-
Method Details
-
getIsp
- Returns:
- The name of the ISP associated with the IP address.
-
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
- 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
- Returns:
- The name of the organization associated with the IP address.
-