AbstractMessagingTemplate that adds operations for sending
messages to a resolvable destination name. Supports destination resolving as defined by
the following interfaces:
| Modifier and Type | Field and Description |
|---|---|
| private DestinationResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> void | convertAndSend(String
the destination name to resolve destinationName, T the Object to use as payload payload)Implements org. org.,
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)Implements org. org.,
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)Implements org. org.,
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)Implements org. org.,
wrap it as a message with the given headers, apply the given post processor,
and send the resulting message to the resolved destination.
|
| public <T> T | convertSendAndReceive(String
the name of the target destination destinationName, Object the payload for the request message to send request, Class<T> the target class to convert the payload of the reply to targetClass)Overrides org. Implements org. org.,
wrap it as a message and send it to the resolved destination, receive a reply
and convert its body to the specified target class.
|
| public <T> T | convertSendAndReceive(String
the name of the target destination destinationName, Object the payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target class to convert the payload of the reply to targetClass)Overrides org. Implements org. org.,
wrap it as a message with the given headers and send it to the resolved destination,
receive a reply and convert its body to the specified target class.
|
| public <T> T | convertSendAndReceive(String
the name of the target destination destinationName, Object the payload for the request message to send request, Class<T> the target class to convert the payload of the reply to targetClass, MessagePostProcessor post process for the request message postProcessor)Overrides org. Implements org. org.,
wrap it as a message, apply the given post process, and send the resulting
message to the resolved destination, then receive a reply and convert its
body to the specified target class.
|
| public <T> T | convertSendAndReceive(String
the name of the target destination destinationName, Object the payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target class to convert the payload of the reply to targetClass, MessagePostProcessor post process for the request message postProcessor)Overrides org. Implements org. org.,
wrap it as a message with the given headers, apply the given post process,
and send the resulting message to the resolved destination, then receive
a reply and convert its body to the specified target class.
|
| public DestinationResolver | |
| public Message | receive(String
the destination name to resolve destinationName)Overrides org. Implements org. |
| public <T> T | receiveAndConvert(String
the destination name to resolve destinationName, Class<T> the target class for the converted payload targetClass)Overrides org. Implements org. |
| protected final D | |
| public void | send(String
the destination name to resolve destinationName, Message<?> the message to send message)Overrides org. Implements org. |
| public Message | sendAndReceive(String
the name of the target destination destinationName, Message<?> the message to send requestMessage)Overrides org. Implements org. |
| public void | setDestinationResolver(DestinationResolver<D>
the destination resolver to use destinationResolver)Configure the |
| destinationResolver | back to summary |
|---|---|
| private DestinationResolver<D> destinationResolver
| |
| AbstractDestinationResolvingMessagingTemplate | back to summary |
|---|---|
| public AbstractDestinationResolvingMessagingTemplate() | |
| convertAndSend | back to summary |
|---|---|
| public <T> void convertAndSend(String destinationName, T payload) Implements org. Doc from org. Resolve the given destination name to a destination, convert the payload Object
to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public <T> void convertAndSend(String destinationName, T payload, Map<String, Object> headers) Implements org. Doc from org. Resolve the given destination name to a destination, convert the payload
Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public <T> void convertAndSend(String destinationName, T payload, MessagePostProcessor postProcessor) Implements org. Doc from org. Resolve the given destination name to a destination, convert the payload
Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public <T> void convertAndSend(String destinationName, T payload, Map<String, Object> headers, MessagePostProcessor postProcessor) Implements org. Doc from org. Resolve the given destination name to a destination, convert the payload
Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass) Overrides org. Implements org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass) Overrides org. Implements org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass, MessagePostProcessor postProcessor) Overrides org. Implements org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass, MessagePostProcessor postProcessor) Overrides org. Implements org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| getDestinationResolver | back to summary |
|---|---|
| public DestinationResolver Return the configured destination resolver.
| |
| receive | back to summary |
|---|---|
| public Message Overrides org. Implements org. Doc from org. Resolve the given destination name and receive a message from it.
| |
| receiveAndConvert | back to summary |
|---|---|
| public <T> T receiveAndConvert(String destinationName, Class<T> targetClass) Overrides org. Implements org. Doc from org. Resolve the given destination name, receive a message from it, convert the payload to the specified target type.
| |
| resolveDestination | back to summary |
|---|---|
| protected final D resolveDestination(String destinationName) | |
| send | back to summary |
|---|---|
| public void send(String destinationName, Message<?> message) Overrides org. Implements org. Doc from org. Resolve the given destination name to a destination and send a message to it. | |
| sendAndReceive | back to summary |
|---|---|
| public Message Overrides org. Implements org. Doc from org. Resolve the given destination name to a destination and send the given message, receive a reply and return it. | |
| setDestinationResolver | back to summary |
|---|---|
| public void setDestinationResolver(DestinationResolver<D> destinationResolver) Configure the This field does not have a default setting. If not configured, methods that
require resolving a destination name will raise an
| |