java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.IpBaseResponse
com.maxmind.geoip2.model.AnonymousIpResponse
com.maxmind.geoip2.model.AnonymousPlusResponse
This class provides the GeoIP Anonymous Plus model.
-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousPlusResponse
(AnonymousPlusResponse response, String ipAddress, Network network) Constructs an instance ofAnonymousPlusResponse
from the values in the response and the specified IP address and network.AnonymousPlusResponse
(Integer anonymizerConfidence, String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, String networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponse
with the specified values.AnonymousPlusResponse
(Integer anonymizerConfidence, String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, LocalDate networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponse
with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionMethods 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
-
AnonymousPlusResponse
public AnonymousPlusResponse(Integer anonymizerConfidence, String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, LocalDate networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponse
with the specified values.- Parameters:
anonymizerConfidence
- confidence that the network is a VPN.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 recordnetworkLastSeen
- the last sighting of the network.providerName
- the name of the VPN provider.
-
AnonymousPlusResponse
public AnonymousPlusResponse(Integer anonymizerConfidence, String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, String networkLastSeen, String providerName) Constructs an instance ofAnonymousPlusResponse
with the specified values.- Parameters:
anonymizerConfidence
- confidence that the network is a VPN.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 recordnetworkLastSeen
- the last sighting of the network.providerName
- the name of the VPN provider.
-
AnonymousPlusResponse
Constructs an instance ofAnonymousPlusResponse
from the values in the 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
-
-
Method Details
-
getAnonymizerConfidence
- Returns:
- A score ranging from 1 to 99 that is our percent confidence that the network is currently part of an actively used VPN service.
-
getNetworkLastSeen
- Returns:
- The last day that the network was sighted in our analysis of anonymized networks.
-
getProviderName
- Returns:
- The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated with the network.
-