Class MessageSelectingInterceptor
java.lang.Object
org.springframework.integration.channel.interceptor.MessageSelectingInterceptor
- All Implemented Interfaces:
org.springframework.messaging.support.ChannelInterceptor
public class MessageSelectingInterceptor
extends java.lang.Object
implements org.springframework.messaging.support.ChannelInterceptor
A
ChannelInterceptor that
delegates to a list of MessageSelectors to decide
whether a Message should be accepted on the MessageChannel.-
Constructor Summary
Constructors Constructor Description MessageSelectingInterceptor(MessageSelector... selectors) -
Method Summary
Modifier and Type Method Description org.springframework.messaging.Message<?>preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
-
Constructor Details
-
Method Details
-
preSend
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)- Specified by:
preSendin interfaceorg.springframework.messaging.support.ChannelInterceptor
-