Package org.springframework.messaging.support
@NullMarked
package org.springframework.messaging.support
Provides implementations of
Message
along with
a MessageBuilder and MessageHeaderAccessor for building and working with messages and
message headers, as well as various MessageChannel
implementations and channel interceptor support.-
ClassDescriptionA base
HeaderMapper
implementation.Abstract base class forMessageChannel
implementations.Abstract base class forSubscribableChannel
implementations.Interface for interceptors that are able to view and/or modify theMessages
being sent-to and/or received-from aMessageChannel
.AGenericMessage
with aThrowable
payload.An extension ofChannelInterceptor
with callbacks to intercept the asynchronous sending of aMessage
to a specific subscriber through anExecutor
.ASubscribableChannel
that sends messages to each of its subscribers.An implementation ofMessage
with a generic payload.HeaderMapper<T>Generic strategy interface for mappingMessageHeaders
to and from other types of objects.AMessageHeaderInitializer
to customize the strategy for ID and TIMESTAMP message header generation.A simpler interceptor that callsMessageHeaderAccessor.setImmutable()
on the headers of messages passed through the preSend method.AMessageChannel
that maintains a listChannelInterceptors
and allows interception of message sending.Extension of theRunnable
interface with methods to obtain theMessageHandler
andMessage
to be handled.Wrapper aroundMessageHeaders
that provides extra features such as strongly typed accessors for specific headers, the ability to leave headers in aMessage
mutable, and the option to suppress automatic generation ofid
andtimestamp
headers.Callback interface for initializing aMessageHeaderAccessor
.MessageHeaderAccessor
subclass that supports storage and access of headers from an external source such as a message broker.