Interface MessageMatcher<T>
- All Known Implementing Classes:
- AbstractMessageMatcherComposite,- AndMessageMatcher,- OrMessageMatcher,- PathPatternMessageMatcher,- SimpDestinationMessageMatcher,- SimpMessageTypeMatcher
public interface MessageMatcher<T>
API for determining if a 
Message should be matched on.- Since:
- 4.0
- 
Nested Class SummaryNested 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 SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault MessageMatcher.MatchResultReturns aMessageMatcher.MatchResultfor thisMessageMatcher.booleanReturns true if theMessagematches, else false
- 
Field Details- 
ANY_MESSAGEMatches everyMessage
 
- 
- 
Method Details- 
matchesReturns true if theMessagematches, else false- Parameters:
- message- the- Messageto match on
- Returns:
- true if the Messagematches, else false
 
- 
matcherdefault 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
 
 
-