Class KotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
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<T>
- Type Parameters:
- T- the type of- BinaryFormat
- All Implemented Interfaces:
- GenericHttpMessageConverter<Object>,- HttpMessageConverter<Object>
- Direct Known Subclasses:
- KotlinSerializationCborHttpMessageConverter,- KotlinSerializationProtobufHttpMessageConverter
public abstract class KotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
extends AbstractKotlinSerializationHttpMessageConverter<T>
Abstract base class for 
HttpMessageConverter implementations that
 defer to Kotlin binary serializers.- Since:
- 6.0
- Author:
- Andreas Ahlenstorf, Sebastien Deleuze, Juergen Hoeller, Iain Henderson, Arjen Poutsma
- 
Field SummaryFields inherited from class org.springframework.http.converter.AbstractHttpMessageConverterlogger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedKotlinSerializationBinaryHttpMessageConverter(T format, MediaType... supportedMediaTypes) Construct anKotlinSerializationBinaryHttpMessageConverterwith format and supported media types.
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectreadInternal(kotlinx.serialization.KSerializer<Object> serializer, T format, HttpInputMessage inputMessage) Reads the given input message with the given serializer and format.protected voidwriteInternal(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) Write the given object to the output message with the given serializer and format.Methods inherited from class org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConvertercanRead, canWrite, read, readInternal, supports, writeInternalMethods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverterwrite, writeInternalMethods inherited from class org.springframework.http.converter.AbstractHttpMessageConverteraddDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConvertercanRead, canWrite, getSupportedMediaTypes, getSupportedMediaTypes, read, write
- 
Constructor Details- 
KotlinSerializationBinaryHttpMessageConverterConstruct anKotlinSerializationBinaryHttpMessageConverterwith format and supported media types.
 
- 
- 
Method Details- 
readInternalprotected Object readInternal(kotlinx.serialization.KSerializer<Object> serializer, T format, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException Description copied from class:AbstractKotlinSerializationHttpMessageConverterReads the given input message with the given serializer and format.- Specified by:
- readInternalin class- AbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
- Throws:
- IOException
- HttpMessageNotReadableException
 
- 
writeInternalprotected void writeInternal(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException Description copied from class:AbstractKotlinSerializationHttpMessageConverterWrite the given object to the output message with the given serializer and format.- Specified by:
- writeInternalin class- AbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
- Throws:
- IOException
- HttpMessageNotWritableException
 
 
-