GeoIP2 Java Versions Save

Java API for GeoIP2 webservice client and database reader

v4.2.0

5 months ago
  • A WebServiceProvider interface has been added to facilitate mocking of WebServiceClient. Requested by Evan Chrisinger. GitHub #359.
  • The GeoIP2 IP Risk database has been discontinued. Methods and classes related to it have been deprecated.
  • The fromString static method on the ConnectionType enum now has the JsonCreator annotation so that it is used when deserializing. This will prevent new additions in the future from causing a deserialization error.
  • The isAnycast() method was added to com.maxmind.geoip2.record.Traits. This returns true if the IP address belongs to an anycast network. This is available for the GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country, City, and Enterprise databases.

v2.17.0

5 months ago
  • Updated model classes with non-breaking changes from the 4.2.0 branch. In particular, this fixes an issue deserializing the new connection_type from the GeoIP2 web services.
  • Updated Jackson and maxmind-db dependencies.

v4.1.0

9 months ago
  • Added SATELLITE to the ConnectionType enum.

v4.0.1

1 year ago
  • com.maxmind.db is now a transitive dependency of this Java module.

v4.0.0

1 year ago
  • This library is now a Java module.
  • Added support for the GeoIP2 IP Risk database.

v3.0.2

1 year ago
  • Updated Jackson and maxmind-db dependencies.

v3.0.1

2 years ago
  • Updated Jackson dependencies to address CVE-2020-36518. Pull request by slunker. GitHub #306.
  • Minor doc updates.

v3.0.0

2 years ago
  • Java 11 or greater is now required.
  • Apache HttpClient has been replaced with java.net.http.HttpClient.
  • The close() method on WebServiceClient is now deprecated. It no longer does anything.
  • On WebServiceClient.Builder:
    • connectTimeout(int) has been deprecated in favor of connectTimeout(Duration).
    • readTimeout(int) has been deprecated in favor of requestTimeout(Duration).
    • proxy(Proxy) has been deprecated in favor of proxy(ProxySelector).
  • On HttpException and InvalidRequestException, getUrl() has been deprecated in favor of getUri(). Constructors that took a URL have been replaced with the equivalent taking a URI.
  • Deprecated constructors on model and trait classes were removed.
  • Model data types were updated to better reflect database data types. In particular:
    • getGeoNameId() on City, Continent, Country, RepresentedCountry, and Subdivision now returns a Long rather than an Integer.
    • getAutonomousSystemNumber() on AsnResponse and Traits now returns a Long rather than an Integer.

v2.16.1

2 years ago
  • Added JsonProperty annotations to getMobileCountryCode() and getMobileNetworkCode() so that it is possible to serialize the object as JSON and then deserialize without losing data.

v2.16.0

2 years ago
  • Support for mobile country code (MCC) and mobile network codes (MNC) was added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2 City and Insights web services. getMobileCountryCode() and getMobileNetworkCode() were added to com.maxmind.geoip2.model.IspResponse for the GeoIP2 ISP database and com.maxmind.geoip2.record.Traits for the Enterprise database and the GeoIP2 City and Insights web services. We expect this data to be available by late January, 2022.
  • Deprecated model constructors that exist for backwards compatibility. These constructors are not generally used by users of this library directly except perhaps when mocking the reader in tests.