Top Description Constructors Methods
org.springframework.http.converter

public abstract Class KotlinSerializationBinaryHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>

extends AbstractKotlinSerializationHttpMessageConverter<T extends kotlinx.serialization.BinaryFormat>
Class Inheritance
Known Direct Subclasses
org.springframework.http.converter.cbor.KotlinSerializationCborHttpMessageConverter, org.springframework.http.converter.protobuf.KotlinSerializationProtobufHttpMessageConverter
Type Parameters
<T>
the type of BinaryFormat
Imports
java.io.IOException, kotlinx.serialization.BinaryFormat, kotlinx.serialization.KSerializer, kotlinx.serialization.SerializationException, org.springframework.http.HttpInputMessage, .HttpOutputMessage, .MediaType, org.springframework.util.StreamUtils

Abstract base class for HttpMessageConverter implementations that defer to Kotlin binary serializers.
Authors
Andreas Ahlenstorf, Sebastien Deleuze, Juergen Hoeller, Iain Henderson, Arjen Poutsma
Since
6.0

Constructor Summary

AccessConstructor and Description
protected
KotlinSerializationBinaryHttpMessageConverter(T format, MediaType... supportedMediaTypes)

Construct an KotlinSerializationBinaryHttpMessageConverter with format and supported media types.

Method Summary

Modifier and TypeMethod and Description
protected Object
readInternal(kotlinx.serialization.KSerializer<Object> serializer, T format, HttpInputMessage inputMessage)

Implements abstract org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.readInternal.

Reads the given input message with the given serializer and format.

protected void
writeInternal(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage)

Implements abstract org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.writeInternal.

Write the given object to the output message with the given serializer and format.

Inherited from org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter:
canReadcanWritereadreadInternalsupportssupportsRepeatableWriteswriteInternal

Constructor Detail

KotlinSerializationBinaryHttpMessageConverterback to summary
protected KotlinSerializationBinaryHttpMessageConverter(T format, MediaType... supportedMediaTypes)

Construct an KotlinSerializationBinaryHttpMessageConverter with format and supported media types.

Method Detail

readInternalback to summary
protected Object readInternal(kotlinx.serialization.KSerializer<Object> serializer, T format, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException

Implements abstract org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.readInternal.

Doc from org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.readInternal.

Reads the given input message with the given serializer and format.

Annotations
@Override
writeInternalback to summary
protected void writeInternal(Object object, kotlinx.serialization.KSerializer<Object> serializer, T format, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException

Implements abstract org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.writeInternal.

Doc from org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter.writeInternal.

Write the given object to the output message with the given serializer and format.

Annotations
@Override