java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AsnResponse
- Direct Known Subclasses:
IspResponse
This class provides the GeoLite2 ASN model.
-
Constructor Summary
ConstructorDescriptionAsnResponse
(AsnResponse response, String ipAddress, Network network) AsnResponse
(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
AsnResponse
-
AsnResponse
-
-
Method Details
-
getAutonomousSystemNumber
- Returns:
- The autonomous system number associated with the IP address.
-
getAutonomousSystemOrganization
- Returns:
- The organization associated with the registered autonomous system number for the IP address
-
getIpAddress
- Returns:
- The IP address that the data in the model is for.
-
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.
-