Package org.springframework.messaging.support
@NonNullApi
@NonNullFields
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
HeaderMapperimplementation.Abstract base class forMessageChannelimplementations.Abstract base class forSubscribableChannelimplementations.Interface for interceptors that are able to view and/or modify theMessagesbeing sent-to and/or received-from aMessageChannel.AGenericMessagewith aThrowablepayload.An extension ofChannelInterceptorwith callbacks to intercept the asynchronous sending of aMessageto a specific subscriber through anExecutor.ASubscribableChannelthat sends messages to each of its subscribers.An implementation ofMessagewith a generic payload.HeaderMapper<T>Generic strategy interface for mappingMessageHeadersto and from other types of objects.AMessageHeaderInitializerto 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.AMessageChannelthat maintains a listChannelInterceptorsand allows interception of message sending.Extension of theRunnableinterface with methods to obtain theMessageHandlerandMessageto be handled.Wrapper aroundMessageHeadersthat provides extra features such as strongly typed accessors for specific headers, the ability to leave headers in aMessagemutable, and the option to suppress automatic generation ofidandtimestampheaders.Callback interface for initializing aMessageHeaderAccessor.MessageHeaderAccessorsubclass that supports storage and access of headers from an external source such as a message broker.