java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.IpBaseResponse
com.maxmind.geoip2.model.AnonymousIpResponse
This class provides the GeoIP2 Anonymous IP model.
-
Constructor Summary
ConstructorDescriptionAnonymousIpResponse
(AnonymousIpResponse response, String ipAddress, Network network) Constructs an instance ofAnonymousIpResponse
from the values in the passed response and the specified IP address and network.AnonymousIpResponse
(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network) Constructs an instance ofAnonymousIpResponse
with the specified values.AnonymousIpResponse
(String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network) Constructs an instance ofAnonymousIpResponse
with the specified values. -
Method Summary
Methods inherited from class com.maxmind.geoip2.model.IpBaseResponse
getIpAddress, getNetwork, isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, isTorExitNode
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
AnonymousIpResponse
public AnonymousIpResponse(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network) Constructs an instance ofAnonymousIpResponse
with the specified values.- Parameters:
ipAddress
- the IP address being checkedisAnonymous
- whether the IP address belongs to any sort of anonymous networkisAnonymousVpn
- whether the IP address belongs to an anonymous VPN systemisHostingProvider
- whether the IP address belongs to a hosting providerisPublicProxy
- whether the IP address belongs to a public proxy systemisResidentialProxy
- whether the IP address belongs to a residential proxy systemisTorExitNode
- whether the IP address is a Tor exit nodenetwork
- the network associated with the record
-
AnonymousIpResponse
public AnonymousIpResponse(String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network) Constructs an instance ofAnonymousIpResponse
with the specified values.- Parameters:
ipAddress
- the IP address being checkedisAnonymous
- whether the IP address belongs to any sort of anonymous networkisAnonymousVpn
- whether the IP address belongs to an anonymous VPN systemisHostingProvider
- whether the IP address belongs to a hosting providerisPublicProxy
- whether the IP address belongs to a public proxy systemisResidentialProxy
- whether the IP address belongs to a residential proxy systemisTorExitNode
- whether the IP address is a Tor exit nodenetwork
- the network associated with the record
-
AnonymousIpResponse
Constructs an instance ofAnonymousIpResponse
from the values in the passed response and the specified IP address and network.- Parameters:
response
- the response to copyipAddress
- the IP address being checkednetwork
- the network associated with the record
-