Package org.springframework.messaging.converter
@NullMarked
package org.springframework.messaging.converter
Provides support for message conversion.
-
ClassDescriptionCommon base class for plain JSON converters, for example, Gson and JSON-B.Abstract base class for
SmartMessageConverterimplementations 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.AMessageConverterthat supports MIME type "application/octet-stream" with the payload converted to and from a byte[].AMessageConverterthat 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 defaultContentTypeResolverthat checks theMessageHeaders.CONTENT_TYPEheader or falls back to a default value.An extension of theSimpleMessageConverterthat uses aConversionServiceto convert the payload of the message to the requested type.Implementation ofMessageConverterthat can read and write JSON using Google Gson.A Jackson 3.x basedMessageConverterimplementation.Implementation ofMessageConverterthat can read and write JSON using the JSON Binding API.Implementation ofMessageConverterthat can read and write JSON using kotlinx.serialization.Deprecated, for removal: This API element is subject to removal in a future version.Implementation ofMessageConverterthat can read and write XML using Spring'sMarshallerandUnmarshallerabstractions.An exception raised byMessageConverterimplementations.A converter to turn the payload of aMessagefrom serialized form to a typed Object and vice versa.Subclass ofProtobufMessageConverterfor use with the official"com.google.protobuf:protobuf-java-util"library for JSON support.AnMessageConverterthat reads and writescom.google.protobuf.Messagesusing Google Protocol Buffers.A simple converter that simply unwraps the message payload as long as it matches the expected target class.An extendedMessageConverterSPI with conversion hint support.AMessageConverterthat supports MIME type "text/plain" with the payload converted to and from a String.
JacksonJsonMessageConverter