Class KotlinSerializationProtobufHttpMessageConverter

All Implemented Interfaces:
GenericHttpMessageConverter<Object>, HttpMessageConverter<Object>

public class KotlinSerializationProtobufHttpMessageConverter extends KotlinSerializationBinaryHttpMessageConverter<kotlinx.serialization.protobuf.ProtoBuf>
Implementation of HttpMessageConverter that can read and write Protocol Buffers using kotlinx.serialization.

This converter can be used to bind @Serializable Kotlin classes, open polymorphic serialization is not supported. It supports application/x-protobuf, application/octet-stream, and application/vnd.google.protobuf.

Since:
6.0
Author:
Iain Henderson
  • Constructor Details

    • KotlinSerializationProtobufHttpMessageConverter

      public KotlinSerializationProtobufHttpMessageConverter()
    • KotlinSerializationProtobufHttpMessageConverter

      public KotlinSerializationProtobufHttpMessageConverter(kotlinx.serialization.protobuf.ProtoBuf protobuf)