Spring Integration

org.springframework.integration.core
Interface MessagePostProcessor

All Known Implementing Classes:
HistoryWritingMessagePostProcessor

public interface MessagePostProcessor

To be used with MessagingTemplate's send method that converts an object to a message. It allows for further modification of the message after it has been processed by the converter.

This is often implemented as an anonymous class within a method implementation.

Since:
2.0
Author:
Mark Fisher
See Also:
MessagingTemplate.convertAndSend(String, Object, MessagePostProcessor), MessagingTemplate.convertAndSend(org.springframework.integration.MessageChannel, Object, MessagePostProcessor), MessageConverter

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

Method Detail

postProcessMessage

Message<?> postProcessMessage(Message<?> message)
Apply a MessagePostProcessor to the message. The returned message is typically a modified version of the original.

Parameters:
message - the message returned from the MessageConverter
Returns:
the modified version of the Message

Spring Integration