Package com.maxmind.geoip2.model
Class DomainResponse
- java.lang.Object
-
- com.maxmind.geoip2.model.AbstractResponse
-
- com.maxmind.geoip2.model.DomainResponse
-
public class DomainResponse extends AbstractResponse
This class provides the GeoIP2 Domain model.
-
-
Constructor Summary
Constructors Constructor Description DomainResponse(DomainResponse response, String ipAddress, Network network)
DomainResponse(String domain, String ipAddress)
DomainResponse(String domain, String ipAddress, Network network)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDomain()
String
getIpAddress()
Network
getNetwork()
-
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
-
-
-
Method Detail
-
getDomain
public String getDomain()
- Returns:
- the The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com".
-
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.
-
-