-
Method Summary
Look up an IP address in a GeoIP2 Anonymous IP.
Look up an IP address in a GeoLite2 ASN database.
Look up an IP address in a GeoIP2 Connection Type database.
Look up an IP address in a GeoIP2 Domain database.
Look up an IP address in a GeoIP2 Enterprise database.
Look up an IP address in a GeoIP2 ISP database.
Look up an IP address in a GeoIP2 Anonymous IP.
Look up an IP address in a GeoLite2 ASN database.
Look up an IP address in a GeoIP2 Connection Type database.
Look up an IP address in a GeoIP2 Domain database.
Look up an IP address in a GeoIP2 Enterprise database.
Look up an IP address in a GeoIP2 ISP database.
-
Method Details
-
tryCountry
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- A Country model for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryCity
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- A City model for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
anonymousIp
Look up an IP address in a GeoIP2 Anonymous IP.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a AnonymousIpResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryAnonymousIp
Look up an IP address in a GeoIP2 Anonymous IP.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a AnonymousIpResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
ipRisk
Deprecated.
Look up an IP address in a GeoIP2 IP Risk database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an IpRiskResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryIpRisk
Deprecated.
Look up an IP address in a GeoIP2 IP Risk database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an IPRiskResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
asn
Look up an IP address in a GeoLite2 ASN database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an IspResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryAsn
Look up an IP address in a GeoLite2 ASN database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an IspResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
connectionType
Look up an IP address in a GeoIP2 Connection Type database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a ConnectTypeResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryConnectionType
Look up an IP address in a GeoIP2 Connection Type database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a ConnectTypeResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
domain
Look up an IP address in a GeoIP2 Domain database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a DomainResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryDomain
Look up an IP address in a GeoIP2 Domain database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- a DomainResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
enterprise
Look up an IP address in a GeoIP2 Enterprise database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an EnterpriseResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryEnterprise
Look up an IP address in a GeoIP2 Enterprise database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an EnterpriseResponse for the requested IP address or empty if it is not in the DB.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
isp
Look up an IP address in a GeoIP2 ISP database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to lookup.
- Returns:
- an IspResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error
-
tryIsp
Look up an IP address in a GeoIP2 ISP database.
- Parameters:
ipAddress
- IPv4 or IPv6 address to look up or empty if it is not in the DB.
- Returns:
- an IspResponse for the requested IP address.
- Throws:
GeoIp2Exception
- if there is an error looking up the IP
IOException
- if there is an IO error