Uses of Interface
org.springframework.messaging.converter.MessageConverter
Package
Description
Provides support for message conversion.
Defines interfaces and implementation classes for messaging templates.
Support classes for working with annotated message-handling methods.
Support classes for handling messages from simple messaging protocols
(like STOMP).
Configuration support for WebSocket messaging using higher level messaging protocols.
Generic support for simple messaging protocols (like STOMP).
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of MessageConverter in org.springframework.messaging.converter
Modifier and TypeInterfaceDescriptioninterface
An extendedMessageConverter
SPI with conversion hint support.Modifier and TypeClassDescriptionclass
Common base class for plain JSON converters, e.g.class
Abstract base class forSmartMessageConverter
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.class
AMessageConverter
that supports MIME type "application/octet-stream" with the payload converted to and from a byte[].class
AMessageConverter
that delegates to a list of registered converters to be invoked until one of them returns a non-null result.class
An extension of theSimpleMessageConverter
that uses aConversionService
to convert the payload of the message to the requested type.class
Implementation ofMessageConverter
that can read and write JSON using Google Gson.class
Implementation ofMessageConverter
that can read and write JSON using the JSON Binding API.class
Implementation ofMessageConverter
that can read and write JSON using kotlinx.serialization.class
A Jackson 2 basedMessageConverter
implementation.class
Implementation ofMessageConverter
that can read and write XML using Spring'sMarshaller
andUnmarshaller
abstractions.class
Subclass ofProtobufMessageConverter
for use with the official"com.google.protobuf:protobuf-java-util"
library for JSON support.class
AnMessageConverter
that reads and writescom.google.protobuf.Messages
using Google Protocol Buffers.class
A simple converter that simply unwraps the message payload as long as it matches the expected target class.class
AMessageConverter
that supports MIME type "text/plain" with the payload converted to and from a String.Modifier and TypeMethodDescriptionCompositeMessageConverter.getConverters()
Return the underlying list of delegate converters.ModifierConstructorDescriptionCompositeMessageConverter
(Collection<MessageConverter> converters) Create an instance with the given converters. -
Uses of MessageConverter in org.springframework.messaging.core
Modifier and TypeMethodDescriptionAbstractMessageSendingTemplate.getMessageConverter()
Return the configuredMessageConverter
.Modifier and TypeMethodDescriptionvoid
AbstractMessageSendingTemplate.setMessageConverter
(MessageConverter messageConverter) Set theMessageConverter
to use inconvertAndSend
methods. -
Uses of MessageConverter in org.springframework.messaging.handler.annotation.support
Modifier and TypeMethodDescriptionvoid
DefaultMessageHandlerMethodFactory.setMessageConverter
(MessageConverter messageConverter) Set theMessageConverter
to use.ModifierConstructorDescriptionMessageMethodArgumentResolver
(MessageConverter converter) Create a resolver instance with the givenMessageConverter
.PayloadMethodArgumentResolver
(MessageConverter messageConverter) Create a newPayloadArgumentResolver
with the givenMessageConverter
.PayloadMethodArgumentResolver
(MessageConverter messageConverter, Validator validator) PayloadMethodArgumentResolver
(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution) -
Uses of MessageConverter in org.springframework.messaging.simp.annotation.support
Modifier and TypeMethodDescriptionSimpAnnotationMethodMessageHandler.getMessageConverter()
Return the configuredMessageConverter
.Modifier and TypeMethodDescriptionvoid
SimpAnnotationMethodMessageHandler.setMessageConverter
(MessageConverter converter) Configure aMessageConverter
to use to convert the payload of a message from its serialized form with a specific MIME type to an Object matching the target method parameter. -
Uses of MessageConverter in org.springframework.messaging.simp.config
Modifier and TypeMethodDescriptionprotected boolean
AbstractMessageBrokerConfiguration.configureMessageConverters
(List<MessageConverter> messageConverters) Override this method to add custom message converters. -
Uses of MessageConverter in org.springframework.messaging.simp.stomp
Modifier and TypeMethodDescriptionDefaultStompSession.getMessageConverter()
Return the configuredMessageConverter
.StompClientSupport.getMessageConverter()
Return the configuredMessageConverter
.Modifier and TypeMethodDescriptionvoid
DefaultStompSession.setMessageConverter
(MessageConverter messageConverter) Set theMessageConverter
to use to convert the payload of incoming and outgoing messages to and frombyte[]
based on object type, or expected object type, and the "content-type" header.void
StompClientSupport.setMessageConverter
(MessageConverter messageConverter) Set theMessageConverter
to use to convert the payload of incoming and outgoing messages to and frombyte[]
based on object type and the "content-type" header. -
Uses of MessageConverter in org.springframework.web.socket.config.annotation
Modifier and TypeMethodDescriptionprotected boolean
DelegatingWebSocketMessageBrokerConfiguration.configureMessageConverters
(List<MessageConverter> messageConverters) default boolean
WebSocketMessageBrokerConfigurer.configureMessageConverters
(List<MessageConverter> messageConverters) Configure the message converters to use when extracting the payload of messages in annotated methods and when sending messages (e.g.