Top Description Methods
org.springframework.messaging.core

public Interface DestinationResolvingMessageSendingOperations<D>

extends MessageSendingOperations<D>
Known Direct Implementers
org.springframework.messaging.core.AbstractDestinationResolvingMessagingTemplate
Type Parameters
<D>
the destination type
Imports
java.util.Map, org.springframework.lang.Nullable, org.springframework.messaging.Message, .MessagingException

Extends MessageSendingOperations and adds operations for sending messages to a destination specified as a (resolvable) String name.
Authors
Mark Fisher, Rossen Stoyanchev
Since
4.0
See Also
DestinationResolver

Method Summary

Modifier and TypeMethod and Description
public <T> void
convertAndSend(String
the destination name to resolve
destinationName
,
T
the Object to use as payload
payload
)

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message and send it to the resolved destination.

public <T> void
convertAndSend(String
the destination name to resolve
destinationName
,
T
the Object to use as payload
payload
,
Map<String, Object>
the headers for the message to send
headers
)

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers and send it to the resolved destination.

public <T> void
convertAndSend(String
the destination name to resolve
destinationName
,
T
the Object to use as payload
payload
,
MessagePostProcessor
the post processor to apply to the message
postProcessor
)

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message, apply the given post processor, and send the resulting message to the resolved destination.

public <T> void
convertAndSend(String
the destination name to resolve
destinationName
,
T
the Object to use as payload
payload
,
Map<String, Object>
the headers for the message to send
headers
,
MessagePostProcessor
the post processor to apply to the message
postProcessor
)

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers, apply the given post processor, and send the resulting message to the resolved destination.

public void
send(String
the destination name to resolve
destinationName
,
Message<?>
the message to send
message
)

Redeclares org.springframework.messaging.core.MessageSendingOperations.send.

Resolve the given destination name to a destination and send a message to it.

Inherited from org.springframework.messaging.core.MessageSendingOperations:
convertAndSendconvertAndSendconvertAndSendconvertAndSendconvertAndSendconvertAndSendsend

Method Detail

convertAndSendback to summary
public <T> void convertAndSend(String destinationName, T payload) throws MessagingException

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message and send it to the resolved destination.

Parameters
destinationName:String

the destination name to resolve

payload:T

the Object to use as payload

convertAndSendback to summary
public <T> void convertAndSend(String destinationName, T payload, Map<String, Object> headers) throws MessagingException

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers and send it to the resolved destination.

Parameters
destinationName:String

the destination name to resolve

payload:T

the Object to use as payload

headers:Map<String, Object>

the headers for the message to send

convertAndSendback to summary
public <T> void convertAndSend(String destinationName, T payload, MessagePostProcessor postProcessor) throws MessagingException

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message, apply the given post processor, and send the resulting message to the resolved destination.

Parameters
destinationName:String

the destination name to resolve

payload:T

the Object to use as payload

postProcessor:MessagePostProcessor

the post processor to apply to the message

convertAndSendback to summary
public <T> void convertAndSend(String destinationName, T payload, Map<String, Object> headers, MessagePostProcessor postProcessor) throws MessagingException

Resolve the given destination name to a destination, convert the payload Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers, apply the given post processor, and send the resulting message to the resolved destination.

Parameters
destinationName:String

the destination name to resolve

payload:T

the Object to use as payload

headers:Map<String, Object>

the headers for the message to send

postProcessor:MessagePostProcessor

the post processor to apply to the message

sendback to summary
public void send(String destinationName, Message<?> message) throws MessagingException

Redeclares org.springframework.messaging.core.MessageSendingOperations.send.

Resolve the given destination name to a destination and send a message to it.

Parameters
destinationName:String

the destination name to resolve

message:Message<?>

the message to send