Package com.maxmind.geoip2.model
Class AnonymousIpResponse
java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.AnonymousIpResponse
This class provides the GeoIP2 Anonymous IP model.
-
Constructor Summary
ConstructorDescriptionAnonymousIpResponse
(AnonymousIpResponse response, String ipAddress, Network network) AnonymousIpResponse
(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isTorExitNode) Deprecated.This constructor exists for backwards compatibility.AnonymousIpResponse
(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network) AnonymousIpResponse
(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isTorExitNode, Network network) Deprecated.This constructor exists for backwards compatibility.AnonymousIpResponse
(String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from class com.maxmind.geoip2.model.AbstractResponse
toJson, toString
-
Constructor Details
-
AnonymousIpResponse
@Deprecated public AnonymousIpResponse(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isTorExitNode) Deprecated.This constructor exists for backwards compatibility. Will be removed in the next major release. -
AnonymousIpResponse
@Deprecated public AnonymousIpResponse(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isTorExitNode, Network network) Deprecated.This constructor exists for backwards compatibility. Will be removed in the next major release. -
AnonymousIpResponse
-
AnonymousIpResponse
-
AnonymousIpResponse
-
-
Method Details
-
isAnonymous
public boolean isAnonymous()- Returns:
- whether the IP address belongs to any sort of anonymous network.
-
isAnonymousVpn
public boolean isAnonymousVpn()- Returns:
- whether the IP address is registered to an anonymous VPN provider. If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using isHostingProvider.
-
isHostingProvider
public boolean isHostingProvider()- Returns:
- whether the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn).
-
isPublicProxy
public boolean isPublicProxy()- Returns:
- whether the IP address belongs to a public proxy.
-
isResidentialProxy
public boolean isResidentialProxy()- Returns:
- whether the IP address is on a suspected anonymizing network and belongs to a residential ISP.
-
isTorExitNode
public boolean isTorExitNode()- Returns:
- whether the IP address is a Tor exit node.
-
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 of the fields besides IP address have the same value.
-