Uses of Interface
org.springframework.messaging.converter.MessageConverter
Packages that use MessageConverter Package Description org.springframework.messaging.converter Provides support for message conversion.org.springframework.messaging.core Defines interfaces and implementation classes for messaging templates.org.springframework.messaging.handler.annotation.support Support classes for working with annotated message-handling methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.Uses of MessageConverter in org.springframework.messaging.converter
Subinterfaces of MessageConverter in org.springframework.messaging.converter Modifier and Type Interface Description interface
SmartMessageConverter
An extendedMessageConverter
SPI with conversion hint support.Classes in org.springframework.messaging.converter that implement MessageConverter Modifier and Type Class Description class
AbstractMessageConverter
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
ByteArrayMessageConverter
AMessageConverter
that supports MIME type "application/octet-stream" with the payload converted to and from a byte[].class
CompositeMessageConverter
AMessageConverter
that delegates to a list of registered converters to be invoked until one of them returns a non-null result.class
GenericMessageConverter
An extension of theSimpleMessageConverter
that uses aConversionService
to convert the payload of the message to the requested type.class
MappingJackson2MessageConverter
A Jackson 2 basedMessageConverter
implementation.class
MarshallingMessageConverter
Implementation ofMessageConverter
that can read and write XML using Spring'sMarshaller
andUnmarshaller
abstractions.class
ProtobufJsonFormatMessageConverter
Subclass ofProtobufMessageConverter
for use with the official"com.google.protobuf:protobuf-java-util"
library for JSON support.class
ProtobufMessageConverter
AnMessageConverter
that reads and writescom.google.protobuf.Messages
using Google Protocol Buffers.class
SimpleMessageConverter
A simple converter that simply unwraps the message payload as long as it matches the expected target class.class
StringMessageConverter
AMessageConverter
that supports MIME type "text/plain" with the payload converted to and from a String.Methods in org.springframework.messaging.converter that return types with arguments of type MessageConverter Modifier and Type Method Description List<MessageConverter>
CompositeMessageConverter. getConverters()
Return the underlying list of delegate converters.Constructor parameters in org.springframework.messaging.converter with type arguments of type MessageConverter Constructor Description CompositeMessageConverter(Collection<MessageConverter> converters)
Create an instance with the given converters.Uses of MessageConverter in org.springframework.messaging.core
Methods in org.springframework.messaging.core that return MessageConverter Modifier and Type Method Description MessageConverter
AbstractMessageSendingTemplate. getMessageConverter()
Return the configuredMessageConverter
.Methods in org.springframework.messaging.core with parameters of type MessageConverter Modifier and Type Method Description void
AbstractMessageSendingTemplate. setMessageConverter(MessageConverter messageConverter)
Set theMessageConverter
to use inconvertAndSend
methods.Uses of MessageConverter in org.springframework.messaging.handler.annotation.support
Methods in org.springframework.messaging.handler.annotation.support with parameters of type MessageConverter Modifier and Type Method Description void
DefaultMessageHandlerMethodFactory. setMessageConverter(MessageConverter messageConverter)
Set theMessageConverter
to use.Constructors in org.springframework.messaging.handler.annotation.support with parameters of type MessageConverter Constructor Description MessageMethodArgumentResolver(MessageConverter converter)
Create a resolver instance with the givenMessageConverter
.PayloadArgumentResolver(MessageConverter messageConverter)
Deprecated.Create a newPayloadArgumentResolver
with the givenMessageConverter
.PayloadArgumentResolver(MessageConverter messageConverter, Validator validator)
Deprecated.PayloadArgumentResolver(MessageConverter messageConverter, Validator validator, boolean useDefaultResolution)
Deprecated.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
Methods in org.springframework.messaging.simp.annotation.support that return MessageConverter Modifier and Type Method Description MessageConverter
SimpAnnotationMethodMessageHandler. getMessageConverter()
Return the configuredMessageConverter
.Methods in org.springframework.messaging.simp.annotation.support with parameters of type MessageConverter Modifier and Type Method Description void
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
Method parameters in org.springframework.messaging.simp.config with type arguments of type MessageConverter Modifier and Type Method Description protected boolean
AbstractMessageBrokerConfiguration. configureMessageConverters(List<MessageConverter> messageConverters)
Override this method to add custom message converters.Uses of MessageConverter in org.springframework.messaging.simp.stomp
Methods in org.springframework.messaging.simp.stomp that return MessageConverter Modifier and Type Method Description MessageConverter
DefaultStompSession. getMessageConverter()
Return the configuredMessageConverter
.MessageConverter
StompClientSupport. getMessageConverter()
Return the configuredMessageConverter
.Methods in org.springframework.messaging.simp.stomp with parameters of type MessageConverter Modifier and Type Method Description void
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
Method parameters in org.springframework.web.socket.config.annotation with type arguments of type MessageConverter Modifier and Type Method Description boolean
AbstractWebSocketMessageBrokerConfigurer. configureMessageConverters(List<MessageConverter> messageConverters)
Deprecated.protected 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.