java.lang.Object
com.maxmind.geoip2.model.AbstractResponse
com.maxmind.geoip2.model.IpBaseResponse
com.maxmind.geoip2.model.IpRiskResponse
Deprecated.
This database has been discontinued.
This class provides the GeoIP2 IP Risk model.
-
Constructor Summary
ConstructorDescriptionIpRiskResponse
(IpRiskResponse response, String ipAddress, Network network) Deprecated.Constructs an instance ofIpRiskResponse
.IpRiskResponse
(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, double ipRisk) Deprecated.Constructs an instance ofIpRiskResponse
.IpRiskResponse
(String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, double ipRisk) Deprecated.Constructs an instance ofIpRiskResponse
. -
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
-
IpRiskResponse
public IpRiskResponse(String ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, double ipRisk) Deprecated.Constructs an instance ofIpRiskResponse
.- 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 recordipRisk
- the IP risk of a model
-
IpRiskResponse
public IpRiskResponse(String ipAddress, Boolean isAnonymous, Boolean isAnonymousVpn, Boolean isHostingProvider, Boolean isPublicProxy, Boolean isResidentialProxy, Boolean isTorExitNode, Network network, double ipRisk) Deprecated.Constructs an instance ofIpRiskResponse
.- 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 recordipRisk
- the IP risk of a model
-
IpRiskResponse
Deprecated.Constructs an instance ofIpRiskResponse
.- Parameters:
response
- TheIpRiskResponse
object to copy.ipAddress
- The IP address that the data in the model is for.network
- The network associated with the record.
-
-
Method Details
-
getIpRisk
public double getIpRisk()Deprecated.- Returns:
- The IP risk of a model.
-