Class KotlinSerializationProtobufHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
org.springframework.http.converter.AbstractSmartHttpMessageConverter<Object>
org.springframework.http.converter.AbstractKotlinSerializationHttpMessageConverter<kotlinx.serialization.protobuf.ProtoBuf>
org.springframework.http.converter.KotlinSerializationBinaryHttpMessageConverter<kotlinx.serialization.protobuf.ProtoBuf>
org.springframework.http.converter.protobuf.KotlinSerializationProtobufHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<Object>, SmartHttpMessageConverter<Object>
public class KotlinSerializationProtobufHttpMessageConverter
extends KotlinSerializationBinaryHttpMessageConverter<kotlinx.serialization.protobuf.ProtoBuf>
Implementation of
HttpMessageConverter
that can read and write Protocol Buffers using
kotlinx.serialization.
It supports application/x-protobuf
, application/octet-stream
, and application/vnd.google.protobuf
.
As of Spring Framework 7.0, open polymorphism is supported.
- Since:
- 6.0
- Author:
- Iain Henderson
-
Field Summary
Fields inherited from class AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorsConstructorDescriptionKotlinSerializationProtobufHttpMessageConverter
(kotlinx.serialization.protobuf.ProtoBuf protobuf) -
Method Summary
Methods inherited from class KotlinSerializationBinaryHttpMessageConverter
readInternal, writeInternal
Methods inherited from class AbstractKotlinSerializationHttpMessageConverter
canRead, canWrite, getSupportedMediaTypes, read, supports, supportsRepeatableWrites, writeInternal
Methods inherited from class AbstractSmartHttpMessageConverter
readInternal, write, writeInternal
Methods inherited from class AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface HttpMessageConverter
getSupportedMediaTypes
Methods inherited from interface SmartHttpMessageConverter
canRead, canWrite, read, write
-
Constructor Details
-
KotlinSerializationProtobufHttpMessageConverter
public KotlinSerializationProtobufHttpMessageConverter() -
KotlinSerializationProtobufHttpMessageConverter
public KotlinSerializationProtobufHttpMessageConverter(kotlinx.serialization.protobuf.ProtoBuf protobuf)
-