Class KotlinSerializationStringHttpMessageConverter<T extends kotlinx.serialization.StringFormat>
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
org.springframework.http.converter.AbstractSmartHttpMessageConverter<Object>
org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter<T>
org.springframework.http.converter.KotlinSerializationStringHttpMessageConverter<T>
- Type Parameters:
- T- the type of- StringFormat
- All Implemented Interfaces:
- HttpMessageConverter<Object>, SmartHttpMessageConverter<Object>
- Direct Known Subclasses:
- KotlinSerializationJsonHttpMessageConverter
public abstract class KotlinSerializationStringHttpMessageConverter<T extends kotlinx.serialization.StringFormat>
extends AbstractKotlinSerializationHttpMessageConverter<T>
Abstract base class for 
HttpMessageConverter implementations that
defer to Kotlin string serializers.
As of Spring Framework 7.0, open polymorphism is supported.
- Since:
- 6.0
- Author:
- Andreas Ahlenstorf, Sebastien Deleuze, Juergen Hoeller, Iain Henderson, Arjen Poutsma
- 
Field SummaryFields inherited from class AbstractHttpMessageConverterlogger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedKotlinSerializationStringHttpMessageConverter(T format, MediaType... supportedMediaTypes) Construct anKotlinSerializationStringHttpMessageConverterwith 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 AbstractKotlinSerializationHttpMessageConvertercanRead, canWrite, getSupportedMediaTypes, read, supports, supportsRepeatableWrites, writeInternalMethods inherited from class AbstractSmartHttpMessageConverterreadInternal, write, writeInternalMethods inherited from class AbstractHttpMessageConverteraddDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpMessageConvertergetSupportedMediaTypesMethods inherited from interface SmartHttpMessageConvertercanRead, canWrite, read, write
- 
Constructor Details- 
KotlinSerializationStringHttpMessageConverter
 
- 
- 
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.StringFormat>
- 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.StringFormat>
- Throws:
- IOException
- HttpMessageNotWritableException
 
 
-