Skip to main content

What's New in MarkLogic 11

Java Client API 4.0.2 Deprecations

Java Client API 4.0.2 introduces the following deprecations.

The com.marklogic.client.extra.httpclient.HttpClientConfigurator interface is deprecated and will be removed in a future release. Use the new com.marklogic.client.extra.okhttpclient.OkHttpClientConfigurator interface instead. Attaching a configurator based on HttpClientConfigurator to a DatabaseClientFactory object no longer has any effect on the HTTP configuration.

The single parameter version of DatabaseClientFactory.SecurityContext.withSSLContext has been deprecated and will be removed in a future release. Instead, use the new version that requires an X509TrustManager as its second parameter. This change affects all classes that implement DatabaseClientFactory.SecurityContext, such as DatabaseClientFactory.CertificateAuthContext, DatabaseClientFactory.KerberosAuthContext, and DatabaseClientFactory.DigestAuthContext.