public class PathPatternRouteMatcher extends Object implements org.springframework.util.RouteMatcher
RouteMatcher
built on PathPatternParser
that uses
PathContainer
and PathPattern
as parsed representations of
routes and patterns.Constructor and Description |
---|
PathPatternRouteMatcher()
Default constructor with
PathPatternParser customized for
MESSAGE_ROUTE
and without matching of trailing separator. |
PathPatternRouteMatcher(PathPatternParser parser)
Constructor with given
PathPatternParser . |
Modifier and Type | Method and Description |
---|---|
String |
combine(String pattern1,
String pattern2) |
Comparator<String> |
getPatternComparator(org.springframework.util.RouteMatcher.Route route) |
boolean |
isPattern(String route) |
boolean |
match(String pattern,
org.springframework.util.RouteMatcher.Route route) |
Map<String,String> |
matchAndExtract(String pattern,
org.springframework.util.RouteMatcher.Route route) |
org.springframework.util.RouteMatcher.Route |
parseRoute(String routeValue) |
public PathPatternRouteMatcher()
PathPatternParser
customized for
MESSAGE_ROUTE
and without matching of trailing separator.public PathPatternRouteMatcher(PathPatternParser parser)
PathPatternParser
.public org.springframework.util.RouteMatcher.Route parseRoute(String routeValue)
parseRoute
in interface org.springframework.util.RouteMatcher
public boolean isPattern(String route)
isPattern
in interface org.springframework.util.RouteMatcher
public String combine(String pattern1, String pattern2)
combine
in interface org.springframework.util.RouteMatcher
public boolean match(String pattern, org.springframework.util.RouteMatcher.Route route)
match
in interface org.springframework.util.RouteMatcher
@Nullable public Map<String,String> matchAndExtract(String pattern, org.springframework.util.RouteMatcher.Route route)
matchAndExtract
in interface org.springframework.util.RouteMatcher
public Comparator<String> getPatternComparator(org.springframework.util.RouteMatcher.Route route)
getPatternComparator
in interface org.springframework.util.RouteMatcher