- convertAndSend
void convertAndSend(Object payload)
Undocumented in source. Be warned that the author may not have intended to support it.
- convertAndSend
void convertAndSend(T destination, Object payload)
Undocumented in source. Be warned that the author may not have intended to support it.
- convertAndSend
void convertAndSend(T destination, Object payload, Map!(string, Object) headers)
Undocumented in source. Be warned that the author may not have intended to support it.
- convertAndSend
void convertAndSend(Object payload, MessagePostProcessor postProcessor)
Undocumented in source. Be warned that the author may not have intended to support it.
- convertAndSend
void convertAndSend(T destination, Object payload, MessagePostProcessor postProcessor)
Undocumented in source. Be warned that the author may not have intended to support it.
- convertAndSend
void convertAndSend(T destination, Object payload, Map!(string, Object) headers, MessagePostProcessor postProcessor)
Undocumented in source. Be warned that the author may not have intended to support it.
- doConvert
Message!(T) doConvert(Object payload, Map!(string, Object) headers, MessagePostProcessor postProcessor)
Convert the given Object to serialized form, possibly using a
{@link MessageConverter}, wrap it as a message with the given
headers and apply the given post processor.
@param payload the Object to use as payload
@param headers headers for the message to send
@param postProcessor the post processor to apply to the message
@return the converted message
- doSend
void doSend(T destination, MessageBase message)
Undocumented in source.
- getDefaultDestination
T getDefaultDestination()
Return the configured default destination.
- getMessageConverter
MessageConverter getMessageConverter()
Return the configured {@link MessageConverter}.
- getRequiredDefaultDestination
T getRequiredDefaultDestination()
Undocumented in source. Be warned that the author may not have intended to support it.
- processHeadersToSend
Map!(string, Object) processHeadersToSend(Map!(string, Object) headers)
Provides access to the map of input headers before a send operation.
Subclasses can modify the headers and then return the same or a different map.
<p>This default implementation in this class returns the input map.
@param headers the headers to send (or {@code null} if none)
@return the actual headers to send (or {@code null} if none)
- send
void send(MessageBase message)
Undocumented in source. Be warned that the author may not have intended to support it.
- send
void send(T destination, MessageBase message)
Undocumented in source. Be warned that the author may not have intended to support it.
- setDefaultDestination
void setDefaultDestination(T defaultDestination)
Configure the default destination to use in send methods that don't have
a destination argument. If a default destination is not configured, send methods
without a destination argument will raise an exception if invoked.
- setMessageConverter
void setMessageConverter(MessageConverter messageConverter)
Set the {@link MessageConverter} to use in {@code convertAndSend} methods.
<p>By default, {@link SimpleMessageConverter} is used.
@param messageConverter the message converter to use
Abstract base class for implementations of {@link MessageSendingOperations}.
@author Mark Fisher @author Rossen Stoyanchev @author Stephane Nicoll @since 4.0 @param (T) the destination type