You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The serializer is now pluggable and determined by the `HttpProvider`. For the Jersey 2 and Jersey 3 HTTP clients, Jackson continues to be used as the serializer
53
+
- As part of the pluggable Serializer changes, when using the Jersey and Jersey 3 HTTP clients, the underlying Jackson `ObjectMapper` can now be obtained using `com.oracle.bmc.serialization.jackson.JacksonSerializer.getDefaultObjectMapper()`. The `com.oracle.bmc.http.client.Serialization.getObjectMapper()` method does not exist anymore.
51
54
52
55
### Invocation callbacks
53
56
Instead of using `com.oracle.bmc.util.internal.Consumer<Invocation.Builder>` to register invocation callbacks, use `com.oracle.bmc.http.client.RequestInterceptor` instead, to decouple the implementation from the choice of the HTTP client.
@@ -157,18 +160,19 @@ There were numerous changes to decouple the implementation from the choice of th
157
160
158
161
### Moved classes
159
162
- Class `com.oracle.bmc.Options` was moved to `com.oracle.bmc.http.client.Options`
160
-
- Class `com.oracle.bmc.http.Serialization` was moved to `com.oracle.bmc.http.client.Serialization`
163
+
- Class `com.oracle.bmc.http.Serialization` was moved to `com.oracle.bmc.http.client.Serialization` and is available from OCI Java SDK versions `3.0.0` to `3.13.1`
161
164
- Class `com.oracle.bmc.io.DuplicatableInputStream` was moved to `com.oracle.bmc.http.client.io.DuplicatableInputStream`
162
165
163
166
### Long deprecated code was removed
164
167
- The signing strategy `OBJECT_STORAGE` was removed from `com.oracle.bmc.http.signing.SigningStrategy`; it had been deprecated for years and had been replaced by `EXCLUDE_BODY`.
165
168
- The `getPublicKey()` and `getPrivateKey()` methods were removed from `com.oracle.bmc.auth.SessionKeySupplier` and implementing classes; they had been deprecated for years and had been replaced by the `getKeyPair()` method.
166
169
167
-
168
170
### Removed code
169
171
- The `setInstanceMetadataServiceClientConfig` method in `com.oracle.bmc.Region` was removed; it never had any effect.
170
172
-`AbstractFederationClientAuthenticationDetailsProviderBuilder.simpleRetry` method has been removed without replacement, since it is not needed in the OCI Java SDK 3.0.0 and higher.
171
-
- You can copy and paste the [previous implementation](https://github.com/oracle/oci-java-sdk/blob/v2.47.0/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java#L494-L528) if you need it.
173
+
- You can copy and paste the [previous implementation](https://github.com/oracle/oci-java-sdk/blob/v2.47.0/bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java#L494-L528) if you need it.
174
+
- Starting OCI Java SDK version `3.14.0`, class `com.oracle.bmc.http.client.Serialization` has been removed.
175
+
172
176
173
177
### Removed dependencies on the following third-party libraries
174
178
- Guava: Guava types have been replaced with JDK types:
Copy file name to clipboardExpand all lines: bmc-addons/bmc-apache-configurator-jersey-addon/src/main/java/com/oracle/bmc/http/client/jersey/apacheconfigurator/ApacheConfigurator.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
* ApacheConfigurator.NonBuffering Apache Configurator by default configures a connection pool with
39
39
* default values for defaultMaxConnectionsPerRoute and maximum open connections. Please make sure
40
40
* to close all InputStreams obtained from the response object by calling close on the stream
41
-
* object. For example - GetObjectReponse.getInputStream().close or try-with-resources. Otherwise,
41
+
* object. For example - GetObjectResponse.getInputStream().close or try-with-resources. Otherwise,
42
42
* the connection is not released from the pool and results in hanging for an indefinite time.
Copy file name to clipboardExpand all lines: bmc-addons/bmc-apache-configurator-jersey3-addon/src/main/java/com/oracle/bmc/http/client/jersey3/apacheconfigurator/ApacheConfigurator.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
* ApacheConfigurator.NonBuffering Apache Configurator by default configures a connection pool with
39
39
* default values for defaultMaxConnectionsPerRoute and maximum open connections. Please make sure
40
40
* to close all InputStreams obtained from the response object by calling close on the stream
41
-
* object. For example - GetObjectReponse.getInputStream().close or try-with-resources. Otherwise,
41
+
* object. For example - GetObjectResponse.getInputStream().close or try-with-resources. Otherwise,
42
42
* the connection is not released from the pool and results in hanging for an indefinite time.
0 commit comments