org.springframework.integration.transformer
Class MessageTransformingChannelInterceptor
java.lang.Object
org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
org.springframework.integration.transformer.MessageTransformingChannelInterceptor
- All Implemented Interfaces:
- ChannelInterceptor
public class MessageTransformingChannelInterceptor
- extends ChannelInterceptorAdapter
A ChannelInterceptor
which invokes a Transformer
when either sending-to or receiving-from a channel.
- Author:
- Jonas Partner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageTransformingChannelInterceptor
public MessageTransformingChannelInterceptor(Transformer transformer)
getTransformOnSend
public boolean getTransformOnSend()
setTransformOnSend
public void setTransformOnSend(boolean transformOnSend)
preSend
public Message<?> preSend(Message<?> message,
MessageChannel channel)
- Specified by:
preSend
in interface ChannelInterceptor
- Overrides:
preSend
in class ChannelInterceptorAdapter
postReceive
public Message<?> postReceive(Message<?> message,
MessageChannel channel)
- Specified by:
postReceive
in interface ChannelInterceptor
- Overrides:
postReceive
in class ChannelInterceptorAdapter