Class PathPatternMessageMatcher.Builder
- Enclosing class:
 - PathPatternMessageMatcher
 
PathPatternMessageMatcher.- 
Method Summary
Modifier and TypeMethodDescriptionMatch messages having this destination pattern.Match messages having this type and destination pattern. 
- 
Method Details
- 
matcher
Match messages having this destination pattern.Path patterns always start with a slash and may contain placeholders. They can also be followed by
/**to signify all URIs under a given path.The following are valid patterns and their meaning
/path- match exactly and only `/path`/path/**- match `/path` and any of its descendents/path/{value}/**- match `/path/subdirectory` and any of its descendents, capturing the value of the subdirectory inMessageAuthorizationContext.getVariables()
A more comprehensive list can be found at
PathPattern.A dot-based message pattern is also supported when configuring a
PathPatternParserusingPathPatternMessageMatcher.withPathPatternParser(org.springframework.web.util.pattern.PathPatternParser)- Parameters:
 pattern- the destination pattern to match- Returns:
 - the 
PathPatternMessageMatcher.Builderfor more configuration 
 - 
matcher
public PathPatternMessageMatcher matcher(@Nullable org.springframework.messaging.simp.SimpMessageType type, String pattern) Match messages having this type and destination pattern.When the message
typeis null, then the matcher does not consider the message typePath patterns always start with a slash and may contain placeholders. They can also be followed by
/**to signify all URIs under a given path.The following are valid patterns and their meaning
/path- match exactly and only `/path`/path/**- match `/path` and any of its descendents/path/{value}/**- match `/path/subdirectory` and any of its descendents, capturing the value of the subdirectory inMessageAuthorizationContext.getVariables()
A more comprehensive list can be found at
PathPattern.A dot-based message pattern is also supported when configuring a
PathPatternParserusingPathPatternMessageMatcher.withPathPatternParser(org.springframework.web.util.pattern.PathPatternParser)- Parameters:
 type- the message type to matchpattern- the destination pattern to match- Returns:
 - the 
PathPatternMessageMatcher.Builderfor more configuration 
 
 -