Package com.maxmind.geoip2.model
Class AsnResponse
- java.lang.Object
-
- com.maxmind.geoip2.model.AbstractResponse
-
- com.maxmind.geoip2.model.AsnResponse
-
- Direct Known Subclasses:
IspResponse
public class AsnResponse extends AbstractResponse
This class provides the GeoLite2 ASN model.
-
-
Constructor Summary
Constructors Constructor Description AsnResponse(AsnResponse response, String ipAddress, Network network)AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress)AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)AsnResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetAutonomousSystemNumber()StringgetAutonomousSystemOrganization()StringgetIpAddress()NetworkgetNetwork()-
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
-
-
-
Constructor Detail
-
AsnResponse
public AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress)
-
AsnResponse
public AsnResponse(Integer autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)
-
AsnResponse
public AsnResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, String ipAddress, Network network)
-
AsnResponse
public AsnResponse(AsnResponse response, String ipAddress, Network network)
-
-
Method Detail
-
getAutonomousSystemNumber
public Integer getAutonomousSystemNumber()
- Returns:
- The autonomous system number associated with the IP address.
-
getAutonomousSystemOrganization
public String getAutonomousSystemOrganization()
- Returns:
- The organization associated with the registered autonomous system number for the IP address
-
getIpAddress
public String getIpAddress()
- Returns:
- The IP address that the data in the model is for.
-
getNetwork
public Network getNetwork()
- Returns:
- The network associated with the record. In particular, this is the largest network where all of the fields besides IP address have the same value.
-
-