Class KotlinSerializationCborHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<T>
org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter<T>
org.springframework.http.converter.KotlinSerializationBinaryHttpMessageConverter<kotlinx.serialization.cbor.Cbor>
org.springframework.http.converter.cbor.KotlinSerializationCborHttpMessageConverter
- All Implemented Interfaces:
GenericHttpMessageConverter<Object>
,HttpMessageConverter<Object>
public class KotlinSerializationCborHttpMessageConverter
extends KotlinSerializationBinaryHttpMessageConverter<kotlinx.serialization.cbor.Cbor>
Implementation of
HttpMessageConverter
that can read and write CBOR using
kotlinx.serialization.
This converter can be used to bind @Serializable
Kotlin classes,
open polymorphic serialization
is not supported.
It supports application/cbor
.
- Since:
- 6.0
- Author:
- Iain Henderson
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorDescriptionKotlinSerializationCborHttpMessageConverter
(kotlinx.serialization.cbor.Cbor cbor) -
Method Summary
Methods inherited from class org.springframework.http.converter.KotlinSerializationBinaryHttpMessageConverter
readInternal, writeInternal
Methods inherited from class org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter
canRead, canWrite, read, readInternal, supports, supportsRepeatableWrites, writeInternal
Methods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverter
write, writeInternal
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.converter.HttpMessageConverter
canRead, canWrite, getSupportedMediaTypes, getSupportedMediaTypes, read, write
-
Constructor Details
-
KotlinSerializationCborHttpMessageConverter
public KotlinSerializationCborHttpMessageConverter() -
KotlinSerializationCborHttpMessageConverter
public KotlinSerializationCborHttpMessageConverter(kotlinx.serialization.cbor.Cbor cbor)
-