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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SmartMessageConverter
An extended
MessageConverter SPI with conversion hint support. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessageConverter
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. |
class |
ByteArrayMessageConverter
A
MessageConverter that supports MIME type "application/octet-stream" with the
payload converted to and from a byte[]. |
class |
CompositeMessageConverter
A
MessageConverter 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 the
SimpleMessageConverter that uses a
ConversionService to convert the payload of the message
to the requested type. |
class |
MappingJackson2MessageConverter
A Jackson 2 based
MessageConverter implementation. |
class |
MarshallingMessageConverter
Implementation of
MessageConverter that can read and write XML using Spring's
Marshaller and Unmarshaller abstractions. |
class |
ProtobufJsonFormatMessageConverter
Subclass of
ProtobufMessageConverter for use with the official
"com.google.protobuf:protobuf-java-util" library for JSON support. |
class |
ProtobufMessageConverter
An
MessageConverter that reads and writes
com.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
A
MessageConverter that supports MIME type "text/plain" with the
payload converted to and from a String. |
Modifier and Type | Method and Description |
---|---|
List<MessageConverter> |
CompositeMessageConverter.getConverters()
Return the underlying list of delegate converters.
|
Constructor and Description |
---|
CompositeMessageConverter(Collection<MessageConverter> converters)
Create an instance with the given converters.
|
Modifier and Type | Method and Description |
---|---|
MessageConverter |
AbstractMessageSendingTemplate.getMessageConverter()
Return the configured
MessageConverter . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractMessageSendingTemplate.setMessageConverter(MessageConverter messageConverter)
Set the
MessageConverter to use in convertAndSend methods. |
Modifier and Type | Method and Description |
---|---|
void |
DefaultMessageHandlerMethodFactory.setMessageConverter(MessageConverter messageConverter)
Set the
MessageConverter to use. |
Constructor and Description |
---|
MessageMethodArgumentResolver(MessageConverter converter)
Create a resolver instance with the given
MessageConverter . |
PayloadArgumentResolver(MessageConverter messageConverter)
Deprecated.
Create a new
PayloadArgumentResolver with the given
MessageConverter . |
PayloadArgumentResolver(MessageConverter messageConverter,
Validator validator)
Deprecated.
|
PayloadArgumentResolver(MessageConverter messageConverter,
Validator validator,
boolean useDefaultResolution)
Deprecated.
|
PayloadMethodArgumentResolver(MessageConverter messageConverter)
Create a new
PayloadArgumentResolver with the given
MessageConverter . |
PayloadMethodArgumentResolver(MessageConverter messageConverter,
Validator validator)
|
PayloadMethodArgumentResolver(MessageConverter messageConverter,
Validator validator,
boolean useDefaultResolution)
|
Modifier and Type | Method and Description |
---|---|
MessageConverter |
SimpAnnotationMethodMessageHandler.getMessageConverter()
Return the configured
MessageConverter . |
Modifier and Type | Method and Description |
---|---|
void |
SimpAnnotationMethodMessageHandler.setMessageConverter(MessageConverter converter)
Configure a
MessageConverter 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. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractMessageBrokerConfiguration.configureMessageConverters(List<MessageConverter> messageConverters)
Override this method to add custom message converters.
|
Modifier and Type | Method and Description |
---|---|
MessageConverter |
StompClientSupport.getMessageConverter()
Return the configured
MessageConverter . |
MessageConverter |
DefaultStompSession.getMessageConverter()
Return the configured
MessageConverter . |
Modifier and Type | Method and Description |
---|---|
void |
StompClientSupport.setMessageConverter(MessageConverter messageConverter)
Set the
MessageConverter to use to convert the payload of incoming
and outgoing messages to and from byte[] based on object type
and the "content-type" header. |
void |
DefaultStompSession.setMessageConverter(MessageConverter messageConverter)
Set the
MessageConverter to use to convert the payload of incoming
and outgoing messages to and from byte[] based on object type, or
expected object type, and the "content-type" header. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DelegatingWebSocketMessageBrokerConfiguration.configureMessageConverters(List<MessageConverter> messageConverters) |
boolean |
AbstractWebSocketMessageBrokerConfigurer.configureMessageConverters(List<MessageConverter> messageConverters)
Deprecated.
|
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.
|