-
- All Implemented Interfaces:
-
io.outfoxx.sunday.mediatypes.codecs.MediaTypeDecoder,io.outfoxx.sunday.mediatypes.codecs.StructuredMediaTypeDecoder
public class ObjectMapperDecoder implements MediaTypeDecoder, StructuredMediaTypeDecoder
Common Jackson ObjectMapper decoder that supports decoding from binary data and structured map data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classObjectMapperDecoder.CustomDeserializationProblemHandler
-
Field Summary
Fields Modifier and Type Field Description private final ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description ObjectMapperDecoder(ObjectMapper objectMapper)
-
Method Summary
-
-
Method Detail
-
getObjectMapper
final ObjectMapper getObjectMapper()
-
decode
<T extends Any> T decode(Source data, KType type)
Decodes binary data into a specific Java/Kotlin type.
- Parameters:
data- Binary data source.type- Target Java/Kotlin type.
-
-
-
-