MessageSendingOperations.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CONVERSION_HINT_HEADER
Name of the header that can be set to provide further information
(e.g. a |
| private MessageConverter | |
| private D | |
| protected final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | convertAndSend(Object
the Object to use as payload payload)Implements org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(D
the target destination destination, Object the Object to use as payload payload)Implements org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(D
the target destination destination, Object the Object to use as payload payload, Map<String, Object> the headers for the message to send headers)Implements org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(Object
the Object to use as payload payload, MessagePostProcessor the post processor to apply to the message postProcessor)Implements org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(D
the target destination destination, Object the Object to use as payload payload, MessagePostProcessor the post processor to apply to the message postProcessor)Implements org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(D
the target destination destination, Object 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. Convert the given Object to serialized form, possibly using a
|
| protected Message | Returns: the converted messagethe 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)Convert the given Object to serialized form, possibly using a
|
| protected abstract void | |
| public D | |
| public MessageConverter | |
| protected final D | |
| protected Map | Returns: the actual headers to send (ornull if none)the headers to send (or headers)null if none)Provides access to the map of input headers before a send operation. |
| public void | send(Message<?>
the message to send message)Implements org. Send a message to a default destination. |
| public void | send(D
the target destination destination, Message<?> the message to send message)Implements org. Send a message to the given destination. |
| public void | setDefaultDestination(D defaultDestination)
Configure the default destination to use in send methods that don't have a destination argument. |
| public void | setMessageConverter(MessageConverter
the message converter to use messageConverter)Set the |
| CONVERSION_HINT_HEADER | back to summary |
|---|---|
| public static final String CONVERSION_HINT_HEADER Name of the header that can be set to provide further information
(e.g. a
| |
| converter | back to summary |
|---|---|
| private MessageConverter converter | |
| defaultDestination | back to summary |
|---|---|
| private D defaultDestination
| |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| AbstractMessageSendingTemplate | back to summary |
|---|---|
| public AbstractMessageSendingTemplate() | |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(Object payload) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(D destination, Object payload) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(D destination, Object payload, Map<String, Object> headers) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(Object payload, MessagePostProcessor postProcessor) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(D destination, Object payload, MessagePostProcessor postProcessor) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(D destination, Object payload, Map<String, Object> headers, MessagePostProcessor postProcessor) throws MessagingException Implements org. Doc from org. Convert the given Object to serialized form, possibly using a
| |
| doConvert | back to summary |
|---|---|
| protected Message Convert the given Object to serialized form, possibly using a
| |
| doSend | back to summary |
|---|---|
| protected abstract void doSend(D destination, Message<?> message) | |
| getDefaultDestination | back to summary |
|---|---|
| public D getDefaultDestination() Return the configured default destination.
| |
| getMessageConverter | back to summary |
|---|---|
| public MessageConverter getMessageConverter() Return the configured | |
| getRequiredDefaultDestination | back to summary |
|---|---|
| protected final D getRequiredDefaultDestination() | |
| processHeadersToSend | back to summary |
|---|---|
| protected Map 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. This default implementation in this class returns the input map. | |
| send | back to summary |
|---|---|
| public void send(Message<?> message) Implements org. Doc from org. Send a message to a default destination. | |
| send | back to summary |
|---|---|
| public void send(D destination, Message<?> message) Implements org. Doc from org. Send a message to the given destination. | |
| setDefaultDestination | back to summary |
|---|---|
| public void setDefaultDestination(D 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 | back to summary |
|---|---|
| public void setMessageConverter(MessageConverter messageConverter) Set the By default,
| |