Package org.springframework.messaging.converter
@NonNullApi
@NonNullFields
package org.springframework.messaging.converter
Provides support for message conversion.
-
ClassDescriptionCommon base class for plain JSON converters, e.g.Abstract base class for
SmartMessageConverter
implementations including support for common properties and a partial implementation of the conversion methods, mainly to check if the converter supports the conversion based on the payload class and MIME type.AMessageConverter
that supports MIME type "application/octet-stream" with the payload converted to and from a byte[].AMessageConverter
that delegates to a list of registered converters to be invoked until one of them returns a non-null result.Resolve the content type for a message.A defaultContentTypeResolver
that checks theMessageHeaders.CONTENT_TYPE
header or falls back to a default value.An extension of theSimpleMessageConverter
that uses aConversionService
to convert the payload of the message to the requested type.Implementation ofMessageConverter
that can read and write JSON using Google Gson.Implementation ofMessageConverter
that can read and write JSON using the JSON Binding API.Implementation ofMessageConverter
that can read and write JSON using kotlinx.serialization.A Jackson 2 basedMessageConverter
implementation.Implementation ofMessageConverter
that can read and write XML using Spring'sMarshaller
andUnmarshaller
abstractions.An exception raised byMessageConverter
implementations.A converter to turn the payload of aMessage
from serialized form to a typed Object and vice versa.Subclass ofProtobufMessageConverter
for use with the official"com.google.protobuf:protobuf-java-util"
library for JSON support.AnMessageConverter
that reads and writescom.google.protobuf.Messages
using Google Protocol Buffers.A simple converter that simply unwraps the message payload as long as it matches the expected target class.An extendedMessageConverter
SPI with conversion hint support.AMessageConverter
that supports MIME type "text/plain" with the payload converted to and from a String.