Class PathPatternRouteMatcher
java.lang.Object
org.springframework.web.util.pattern.PathPatternRouteMatcher
- All Implemented Interfaces:
org.springframework.util.RouteMatcher
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.- Since:
- 5.2
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.util.RouteMatcher
org.springframework.util.RouteMatcher.Route -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor withPathPatternParsercustomized forMESSAGE_ROUTEand without matching of trailing separator.Constructor with givenPathPatternParser. -
Method Summary
Modifier and TypeMethodDescriptiongetPatternComparator(org.springframework.util.RouteMatcher.Route route) booleanbooleanmatchAndExtract(String pattern, org.springframework.util.RouteMatcher.Route route) org.springframework.util.RouteMatcher.RouteparseRoute(String routeValue)
-
Constructor Details
-
PathPatternRouteMatcher
public PathPatternRouteMatcher()Default constructor withPathPatternParsercustomized forMESSAGE_ROUTEand without matching of trailing separator. -
PathPatternRouteMatcher
Constructor with givenPathPatternParser.
-
-
Method Details
-
parseRoute
- Specified by:
parseRoutein interfaceorg.springframework.util.RouteMatcher
-
isPattern
- Specified by:
isPatternin interfaceorg.springframework.util.RouteMatcher
-
combine
- Specified by:
combinein interfaceorg.springframework.util.RouteMatcher
-
match
- Specified by:
matchin interfaceorg.springframework.util.RouteMatcher
-
matchAndExtract
@Nullable public Map<String,String> matchAndExtract(String pattern, org.springframework.util.RouteMatcher.Route route) - Specified by:
matchAndExtractin interfaceorg.springframework.util.RouteMatcher
-
getPatternComparator
- Specified by:
getPatternComparatorin interfaceorg.springframework.util.RouteMatcher
-