Package com.maxmind.geoip2.model
Class AsnResponse
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
(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress) Deprecated.This constructor exists for backwards compatibility.AsnResponse
(Integer autonomousSystemNumber, String autonomousSystemOrganization, 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
@Deprecated public AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress) Deprecated.This constructor exists for backwards compatibility. Will be removed in the next major release. -
AsnResponse
-
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.
-