站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

MessagePostProcessor (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.jms.core
Interface 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.

Since:
1.1
Author:
Mark Pollack
See Also:
JmsTemplate.convertAndSend(String, Object, MessagePostProcessor), JmsTemplate.convertAndSend(javax.jms.Destination, Object, MessagePostProcessor), MessageConverter

Method Summary
 Message postProcessMessage(Message message)
          Apply a MessagePostProcessor to the message.
 

Method Detail

postProcessMessage

Message postProcessMessage(Message message)
                           throws JMSException
Apply a MessagePostProcessor to the message. The returned message is typically a modified version of the original.

Parameters:
message - the JMS message from the MessageConverter
Returns:
the modified version of the Message
Throws:
JMSException - if thrown by JMS API methods

The Spring Framework

Copyright © 2002-2007 The Spring Framework.