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
ConstructorsConstructorDescriptionIspResponse(IspResponse response, String ipAddress, Network network) Constructs an instance ofIspResponse.IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) Constructs an instance ofIspResponse. -
Method Summary
Methods inherited from class com.maxmind.geoip2.model.AsnResponse
getAutonomousSystemNumber, getAutonomousSystemOrganization, getIpAddress, getNetworkMethods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
IspResponse
public IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) Constructs an instance ofIspResponse.- Parameters:
autonomousSystemNumber- the autonomous system number associated with the IP addressautonomousSystemOrganization- the organization associated with the registered autonomous system number for the IP addressipAddress- the IP address that the data in the model is forisp- the name of the ISP associated with the IP addressmobileCountryCode- the mobile country code (MCC) associated with the IPmobileNetworkCode- the mobile network code (MNC) associated with the IPorganization- the name of the organization associated with the IP addressnetwork- the network associated with the record
-
IspResponse
Constructs an instance ofIspResponse.- Parameters:
response- TheAsnResponseobject to copy.ipAddress- The IP address that the data in the model is for.network- The network associated with the record.
-
-
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.
-