Interface MessageMatcher<T>
- All Known Implementing Classes:
 AbstractMessageMatcherComposite,AndMessageMatcher,OrMessageMatcher,PathPatternMessageMatcher,SimpMessageTypeMatcher
public interface MessageMatcher<T>
API for determining if a 
Message should be matched on.- Since:
 - 4.0
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe result of matching against aMessagecontains the status, true or false, of the match and if present, any variables extracted from the match - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiondefault MessageMatcher.MatchResultReturns aMessageMatcher.MatchResultfor thisMessageMatcher.booleanReturns true if theMessagematches, else false 
- 
Field Details
- 
ANY_MESSAGE
Matches everyMessage 
 - 
 - 
Method Details
- 
matches
Returns true if theMessagematches, else false- Parameters:
 message- theMessageto match on- Returns:
 - true if the 
Messagematches, else false 
 - 
matcher
default MessageMatcher.MatchResult matcher(org.springframework.messaging.Message<? extends T> message) Returns aMessageMatcher.MatchResultfor thisMessageMatcher. The default implementation returnsCollections.emptyMap()whenMessageMatcher.MatchResult.getVariables()is invoked.- Returns:
 - the 
MatchResultfrom comparing thisMessageMatcheragainst theMessage - Since:
 - 6.5
 
 
 -