Package io.micronaut.oraclecloud.serde
Class OciSdkMicronautSerializer
java.lang.Object
io.micronaut.oraclecloud.serde.OciSdkMicronautSerializer
- All Implemented Interfaces:
com.oracle.bmc.http.client.Serializer
@Internal
public final class OciSdkMicronautSerializer
extends Object
implements com.oracle.bmc.http.client.Serializer
Implementation of
Use
Serializer
based on micronaut serde using ObjectMapper
.
Use
getDefaultSerializer()
method to get the default implementation
configured for use inside an Oracle Cloud SDK HTTP client.-
Constructor Summary
ConstructorDescriptionOciSdkMicronautSerializer
(io.micronaut.json.JsonMapper objectMapper) Create Serializer from micronaut serdeObjectMapper
. -
Method Summary
Modifier and TypeMethodDescriptionstatic io.micronaut.serde.ObjectMapper
static com.oracle.bmc.http.client.Serializer
<T> T
<T> T
-
Constructor Details
-
OciSdkMicronautSerializer
public OciSdkMicronautSerializer(io.micronaut.json.JsonMapper objectMapper) Create Serializer from micronaut serdeObjectMapper
.- Parameters:
objectMapper
- the object mapper
-
-
Method Details
-
readValue
- Specified by:
readValue
in interfacecom.oracle.bmc.http.client.Serializer
- Throws:
IOException
-
readValue
- Specified by:
readValue
in interfacecom.oracle.bmc.http.client.Serializer
- Throws:
IOException
-
writeValueAsString
- Specified by:
writeValueAsString
in interfacecom.oracle.bmc.http.client.Serializer
- Throws:
IOException
-
getDefaultObjectMapper
public static io.micronaut.serde.ObjectMapper getDefaultObjectMapper()- Returns:
- The implementation of object mapper configured for oci java sdk
-
getDefaultSerializer
public static com.oracle.bmc.http.client.Serializer getDefaultSerializer()- Returns:
- The implementation of serializer configured for oci java sdk
-