接口 MessagePostProcessor
public interface MessagePostProcessor
To be used with JmsTemplate's send method that convert an object to a message. It allows for further modification of the message after it has been processed by the converter. This is useful for setting of JMS Header and Properties.This often as an anonymous class within a method implementation.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Message
postProcessMessage(Message message)
Apply a MessagePostProcessor to the message.
方法详细资料
postProcessMessage
Message postProcessMessage(Message message) throws JMSException
Apply a MessagePostProcessor to the message. The returned message is typically a modified version of the original.- 参数:
message
- the JMS message from the MessageConverter- 返回:
- the modified version of the Message
- 抛出:
JMSException
- if thrown by JMS API methods