org.springframework.integration.channel.interceptor
Class MessageSelectingInterceptor
java.lang.Object
org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter
org.springframework.integration.channel.interceptor.MessageSelectingInterceptor
- All Implemented Interfaces:
- ChannelInterceptor
public class MessageSelectingInterceptor
- extends ChannelInterceptorAdapter
A ChannelInterceptor that
delegates to a list of MessageSelectors to decide
whether a Message should be accepted on the MessageChannel.
- Author:
- Mark Fisher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageSelectingInterceptor
public MessageSelectingInterceptor(MessageSelector... selectors)
preSend
public Message<?> preSend(Message<?> message,
MessageChannel channel)
- Description copied from interface:
ChannelInterceptor
- Invoked before the Message is actually sent to the channel.
This allows for modification of the Message if necessary.
If this method returns
null, then the actual
send invocation will not occur.
- Specified by:
preSend in interface ChannelInterceptor- Overrides:
preSend in class ChannelInterceptorAdapter
Copyright © 2010. All Rights Reserved.