From 0937e8182435054a745009d03123e9a1926d942c Mon Sep 17 00:00:00 2001
From: Gregory Oschwald
- * This record is returned by the GeoIP2 Precision Insights web service. + * This record is returned by the GeoIP2 Insights web service. *
* * @param confidence A score ranging from 1 to 99 that is our percent confidence that the * network is currently part of an actively used VPN service. This is only - * available from the GeoIP2 Precision Insights web service. + * available from the GeoIP2 Insights web service. * @param isAnonymous Whether the IP address belongs to any sort of anonymous network. * @param isAnonymousVpn Whether the IP address is registered to an anonymous VPN provider. If a * VPN provider does not register subnets under names associated with them, @@ -26,10 +26,10 @@ * belongs to a residential ISP. * @param isTorExitNode Whether the IP address is a Tor exit node. * @param networkLastSeen The last day that the network was sighted in our analysis of anonymized - * networks. This is only available from the GeoIP2 Precision Insights web + * networks. This is only available from the GeoIP2 Insights web * service. * @param providerName The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated - * with the network. This is only available from the GeoIP2 Precision Insights + * with the network. This is only available from the GeoIP2 Insights * web service. */ public record Anonymizer( From 27b214a9358d709c83a01967ea883e1aa3e1f53d Mon Sep 17 00:00:00 2001 From: Gregory Oschwald- * The class {@code DatabaseReader} provides a reader for the GeoIP2 database + * The class {@code DatabaseReader} provides a reader for the GeoIP database * format. *
** To use the database API, you must create a new {@code DatabaseReader} using * the {@code DatabaseReader.Builder}. You must provide the {@code Builder} - * constructor either an {@code InputStream} or {@code File} for your GeoIP2 + * constructor either an {@code InputStream} or {@code File} for your GeoIP * database. You may also specify the {@code fileMode} and the {@code locales} * fallback order using the methods on the {@code Builder} object. *
@@ -54,7 +54,7 @@ * ** If the lookup succeeds, the method call will return a response class for - * the GeoIP2 lookup. The class in turn contains multiple record classes, + * the GeoIP lookup. The class in turn contains multiple record classes, * each of which represents part of the data returned by the database. *
*@@ -158,7 +158,7 @@ private int getDatabaseType() { /** *
* Constructs a Builder for the {@code DatabaseReader}. The file passed to - * it must be a valid GeoIP2 database file. + * it must be a valid GeoIP database file. *
*
* {@code Builder} creates instances of {@code DatabaseReader}
@@ -177,7 +177,7 @@ public static final class Builder {
NodeCache cache = NoCache.getInstance();
/**
- * @param stream the stream containing the GeoIP2 database to use.
+ * @param stream the stream containing the GeoIP database to use.
*/
public Builder(InputStream stream) {
this.stream = stream;
@@ -185,7 +185,7 @@ public Builder(InputStream stream) {
}
/**
- * @param database the GeoIP2 database file to use.
+ * @param database the GeoIP database file to use.
*/
public Builder(File database) {
this.database = database;
@@ -212,7 +212,7 @@ public Builder withCache(NodeCache cache) {
}
/**
- * @param val The file mode used to open the GeoIP2 database
+ * @param val The file mode used to open the GeoIP database
* @return Builder object
* @throws java.lang.IllegalArgumentException if you initialized the Builder with a URL,
* which uses {@link FileMode#MEMORY}, but you
@@ -349,7 +349,7 @@ public Optional
- * The {@code WebServiceClient} class provides a client API for all the GeoIP2
+ * The {@code WebServiceClient} class provides a client API for all the GeoIP
* web services. The services are Country, City Plus, and Insights. Each
* service returns a different set of data about an IP address, with Country
* returning the least data and Insights the most.
@@ -66,9 +66,9 @@
* To use the web service API, you must create a new {@code WebServiceClient}
* using the {@code WebServiceClient.Builder}. You must provide the
* {@code Builder} constructor your MaxMind {@code accountId} and
- * {@code licenseKey}. To use the GeoLite2 web services instead of GeoIP2, set
+ * {@code licenseKey}. To use the GeoLite web services instead of GeoIP, set
* the {@code host} method on the builder to {@code geolite.info}. To use the
- * Sandbox GeoIP2 web services instead of the production GeoIP2 web services,
+ * Sandbox GeoIP web services instead of the production GeoIP web services,
* set the {@code host} method on the builder to {@code sandbox.maxmind.com}.
* You may also set a {@code timeout} or set the {@code locales} fallback order
* using the methods on the {@code Builder}. After you have created the {@code
@@ -91,7 +91,7 @@
*
* For details on the possible errors returned by the web service itself, see the GeoIP2 web
+ * href="https://dev.maxmind.com/geoip/docs/web-services?lang=en">the GeoIP web
* service documentation.
*
@@ -226,9 +226,9 @@ public WebServiceClient.Builder disableHttps() {
/**
* @param val The host to use. Set this to {@code geolite.info} to use the
- * GeoLite2 web services instead of the GeoIP2 web services.
+ * GeoLite web services instead of the GeoIP web services.
* Set this to {@code sandbox.maxmind.com} to use the Sandbox
- * GeoIP2 web services instead of the production GeoIP2 web
+ * GeoIP web services instead of the production GeoIP web
* services. The sandbox allows you to experiment with the
* API without affecting your production data.
* @return Builder object
diff --git a/src/main/java/com/maxmind/geoip2/WebServiceProvider.java b/src/main/java/com/maxmind/geoip2/WebServiceProvider.java
index ce2ddbc2..63140512 100644
--- a/src/main/java/com/maxmind/geoip2/WebServiceProvider.java
+++ b/src/main/java/com/maxmind/geoip2/WebServiceProvider.java
@@ -8,7 +8,7 @@
import java.net.InetAddress;
/**
- * Interface for GeoIP2 web service providers.
+ * Interface for GeoIP web service providers.
*/
public interface WebServiceProvider extends GeoIp2Provider {
/**
diff --git a/src/main/java/com/maxmind/geoip2/exception/GeoIp2Exception.java b/src/main/java/com/maxmind/geoip2/exception/GeoIp2Exception.java
index 24afd18d..dc5bda46 100644
--- a/src/main/java/com/maxmind/geoip2/exception/GeoIp2Exception.java
+++ b/src/main/java/com/maxmind/geoip2/exception/GeoIp2Exception.java
@@ -1,8 +1,8 @@
package com.maxmind.geoip2.exception;
/**
- * This class represents a generic GeoIP2 error. All other exceptions thrown by
- * the GeoIP2 API subclass this exception
+ * This class represents a generic GeoIP error. All other exceptions thrown by
+ * the GeoIP API subclass this exception
*/
public sealed class GeoIp2Exception extends Exception
permits AddressNotFoundException,
diff --git a/src/main/java/com/maxmind/geoip2/exception/InvalidRequestException.java b/src/main/java/com/maxmind/geoip2/exception/InvalidRequestException.java
index 1acd388e..f6eeb795 100644
--- a/src/main/java/com/maxmind/geoip2/exception/InvalidRequestException.java
+++ b/src/main/java/com/maxmind/geoip2/exception/InvalidRequestException.java
@@ -3,7 +3,7 @@
import java.net.URI;
/**
- * This class represents a non-specific error returned by MaxMind's GeoIP2 web
+ * This class represents a non-specific error returned by MaxMind's GeoIP web
* service. This occurs when the web service is up and responding to requests,
* but the request sent was invalid in some way.
*/
diff --git a/src/main/java/com/maxmind/geoip2/model/AnonymousIpResponse.java b/src/main/java/com/maxmind/geoip2/model/AnonymousIpResponse.java
index c8a22226..fe0981ef 100644
--- a/src/main/java/com/maxmind/geoip2/model/AnonymousIpResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/AnonymousIpResponse.java
@@ -13,7 +13,7 @@
import java.net.InetAddress;
/**
- * This class provides the GeoIP2 Anonymous IP model.
+ * This class provides the GeoIP Anonymous IP model.
*
* @param ipAddress The IP address that the data in the model is for.
* @param isAnonymous Whether the IP address belongs to any sort of anonymous network.
diff --git a/src/main/java/com/maxmind/geoip2/model/AsnResponse.java b/src/main/java/com/maxmind/geoip2/model/AsnResponse.java
index 0dea5f03..0072f33c 100644
--- a/src/main/java/com/maxmind/geoip2/model/AsnResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/AsnResponse.java
@@ -13,7 +13,7 @@
import java.net.InetAddress;
/**
- * This class provides the GeoLite2 ASN model.
+ * This class provides the GeoLite ASN model.
*
* @param autonomousSystemNumber The autonomous system number associated with the IP address.
* @param autonomousSystemOrganization The organization associated with the registered autonomous
diff --git a/src/main/java/com/maxmind/geoip2/model/CityResponse.java b/src/main/java/com/maxmind/geoip2/model/CityResponse.java
index f6f35254..f93997d3 100644
--- a/src/main/java/com/maxmind/geoip2/model/CityResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/CityResponse.java
@@ -40,7 +40,7 @@
* to most specific (smallest). If the response did not contain any
* subdivisions, this is an empty list.
* @param traits Record for the traits of the requested IP address.
- * @see GeoIP2 Web
+ * @see GeoIP Web
* Services
*/
public record CityResponse(
diff --git a/src/main/java/com/maxmind/geoip2/model/ConnectionTypeResponse.java b/src/main/java/com/maxmind/geoip2/model/ConnectionTypeResponse.java
index 40b492c9..0fa09310 100644
--- a/src/main/java/com/maxmind/geoip2/model/ConnectionTypeResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/ConnectionTypeResponse.java
@@ -16,7 +16,7 @@
import java.net.InetAddress;
/**
- * This class provides the GeoIP2 Connection-Type model.
+ * This class provides the GeoIP Connection-Type model.
*
* @param connectionType The connection type of the IP address.
* @param ipAddress The IP address that the data in the model is for.
diff --git a/src/main/java/com/maxmind/geoip2/model/CountryResponse.java b/src/main/java/com/maxmind/geoip2/model/CountryResponse.java
index 23c3c3f2..1d20f2e6 100644
--- a/src/main/java/com/maxmind/geoip2/model/CountryResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/CountryResponse.java
@@ -25,7 +25,7 @@
* represented country is used for things like military bases. It is
* only present when the represented country differs from the country.
* @param traits Record for the traits of the requested IP address.
- * @see GeoIP2 Web
+ * @see GeoIP Web
* Services
*/
public record CountryResponse(
diff --git a/src/main/java/com/maxmind/geoip2/model/DomainResponse.java b/src/main/java/com/maxmind/geoip2/model/DomainResponse.java
index 347f255c..120bc866 100644
--- a/src/main/java/com/maxmind/geoip2/model/DomainResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/DomainResponse.java
@@ -13,7 +13,7 @@
import java.net.InetAddress;
/**
- * This class provides the GeoIP2 Domain model.
+ * This class provides the GeoIP Domain model.
*
* @param domain The second level domain associated with the IP address. This will be something
* like "example.com" or "example.co.uk", not "foo.example.com".
diff --git a/src/main/java/com/maxmind/geoip2/model/EnterpriseResponse.java b/src/main/java/com/maxmind/geoip2/model/EnterpriseResponse.java
index 5cc60ef6..5cb741f8 100644
--- a/src/main/java/com/maxmind/geoip2/model/EnterpriseResponse.java
+++ b/src/main/java/com/maxmind/geoip2/model/EnterpriseResponse.java
@@ -18,7 +18,7 @@
/**
*
- * This class provides a model for the data returned by the GeoIP2 Enterprise
+ * This class provides a model for the data returned by the GeoIP Enterprise
* database
* Exceptions
*
- * This record is returned by the GeoIP2 Insights web service. + * This record is returned by the GeoIP Insights web service. *
* * @param confidence A score ranging from 1 to 99 that is our percent confidence that the * network is currently part of an actively used VPN service. This is only - * available from the GeoIP2 Insights web service. + * available from the GeoIP Insights web service. * @param isAnonymous Whether the IP address belongs to any sort of anonymous network. * @param isAnonymousVpn Whether the IP address is registered to an anonymous VPN provider. If a * VPN provider does not register subnets under names associated with them, @@ -26,10 +26,10 @@ * belongs to a residential ISP. * @param isTorExitNode Whether the IP address is a Tor exit node. * @param networkLastSeen The last day that the network was sighted in our analysis of anonymized - * networks. This is only available from the GeoIP2 Insights web + * networks. This is only available from the GeoIP Insights web * service. * @param providerName The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated - * with the network. This is only available from the GeoIP2 Insights + * with the network. This is only available from the GeoIP Insights * web service. */ public record Anonymizer( diff --git a/src/main/java/com/maxmind/geoip2/record/City.java b/src/main/java/com/maxmind/geoip2/record/City.java index 2ba14b2c..d8fad0e9 100644 --- a/src/main/java/com/maxmind/geoip2/record/City.java +++ b/src/main/java/com/maxmind/geoip2/record/City.java @@ -19,7 +19,7 @@ * @param locales The locales to use for retrieving localized names. * @param confidence A value from 0-100 indicating MaxMind's confidence that the city * is correct. This attribute is only available from the Insights - * web service and the GeoIP2 Enterprise database. + * web service and the GeoIP Enterprise database. * @param geonameId The GeoName ID for the city. * @param names A {@link Map} from locale codes to the name in that locale. */ @@ -77,7 +77,7 @@ public City( /** * @return A value from 0-100 indicating MaxMind's confidence that the city * is correct. This attribute is only available from the Insights - * web service and the GeoIP2 Enterprise database. + * web service and the GeoIP Enterprise database. * @deprecated Use {@link #confidence()} instead. This method will be removed in 6.0.0. */ @Deprecated(since = "5.0.0", forRemoval = true) diff --git a/src/main/java/com/maxmind/geoip2/record/Country.java b/src/main/java/com/maxmind/geoip2/record/Country.java index 17e4e699..b55958e4 100644 --- a/src/main/java/com/maxmind/geoip2/record/Country.java +++ b/src/main/java/com/maxmind/geoip2/record/Country.java @@ -19,7 +19,7 @@ * @param locales The locales to use for retrieving localized names. * @param confidence A value from 0-100 indicating MaxMind's confidence that the * country is correct. This attribute is only available from the - * Insights web service and the GeoIP2 Enterprise database. + * Insights web service and the GeoIP Enterprise database. * @param geonameId The GeoName ID for the country. * @param isInEuropeanUnion This is true if the country is a member state of the * European Union. @@ -91,7 +91,7 @@ public Country( /** * @return A value from 0-100 indicating MaxMind's confidence that the * country is correct. This attribute is only available from the - * Insights web service and the GeoIP2 Enterprise database. + * Insights web service and the GeoIP Enterprise database. * @deprecated Use {@link #confidence()} instead. This method will be removed in 6.0.0. */ @Deprecated(since = "5.0.0", forRemoval = true) diff --git a/src/main/java/com/maxmind/geoip2/record/Postal.java b/src/main/java/com/maxmind/geoip2/record/Postal.java index be7680a5..21c5bf07 100644 --- a/src/main/java/com/maxmind/geoip2/record/Postal.java +++ b/src/main/java/com/maxmind/geoip2/record/Postal.java @@ -14,7 +14,7 @@ * code. * @param confidence A value from 0-100 indicating MaxMind's confidence that the postal * code is correct. This attribute is only available from the Insights - * web service and the GeoIP2 Enterprise database. + * web service and the GeoIP Enterprise database. */ public record Postal( @JsonProperty("code") @@ -47,7 +47,7 @@ public String getCode() { /** * @return A value from 0-100 indicating MaxMind's confidence that the * postal code is correct. This attribute is only available from the - * Insights web service and the GeoIP2 Enterprise database. + * Insights web service and the GeoIP Enterprise database. * @deprecated Use {@link #confidence()} instead. This method will be removed in 6.0.0. */ @Deprecated(since = "5.0.0", forRemoval = true) diff --git a/src/main/java/com/maxmind/geoip2/record/RepresentedCountry.java b/src/main/java/com/maxmind/geoip2/record/RepresentedCountry.java index be9c0234..70cf73b7 100644 --- a/src/main/java/com/maxmind/geoip2/record/RepresentedCountry.java +++ b/src/main/java/com/maxmind/geoip2/record/RepresentedCountry.java @@ -24,7 +24,7 @@ * @param locales The locales to use for retrieving localized names. * @param confidence A value from 0-100 indicating MaxMind's confidence that the * country is correct. This attribute is only available from the - * Insights web service and the GeoIP2 Enterprise database. + * Insights web service and the GeoIP Enterprise database. * @param geonameId The GeoName ID for the country. * @param isInEuropeanUnion This is true if the country is a member state of the * European Union. @@ -115,7 +115,7 @@ public String getType() { /** * @return A value from 0-100 indicating MaxMind's confidence that the * country is correct. This attribute is only available from the - * Insights web service and the GeoIP2 Enterprise database. + * Insights web service and the GeoIP Enterprise database. * @deprecated Use {@link #confidence()} instead. This method will be removed in 6.0.0. */ @Deprecated(since = "5.0.0", forRemoval = true) diff --git a/src/main/java/com/maxmind/geoip2/record/Subdivision.java b/src/main/java/com/maxmind/geoip2/record/Subdivision.java index 460fc6f1..695396ed 100644 --- a/src/main/java/com/maxmind/geoip2/record/Subdivision.java +++ b/src/main/java/com/maxmind/geoip2/record/Subdivision.java @@ -19,7 +19,7 @@ * @param locales The locales to use for retrieving localized names. * @param confidence A value from 0-100 indicating MaxMind's confidence that the * subdivision is correct. This attribute is only available from - * the Insights web service and the GeoIP2 Enterprise database. + * the Insights web service and the GeoIP Enterprise database. * @param geonameId The GeoName ID for the subdivision. * @param isoCode A string up to three characters long containing the subdivision * portion of the ISO @@ -85,7 +85,7 @@ public Subdivision( /** * @return A value from 0-100 indicating MaxMind's confidence that * the subdivision is correct. This attribute is only available from - * the Insights web service and the GeoIP2 Enterprise database. + * the Insights web service and the GeoIP Enterprise database. * @deprecated Use {@link #confidence()} instead. This method will be removed in 6.0.0. */ @Deprecated(since = "5.0.0", forRemoval = true) From ab19d2201c6bed573ee660ad37c691d4518ceaa5 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald