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
ConstructorDescriptionDefault constructor withPathPatternParser
customized forMESSAGE_ROUTE
and without matching of trailing separator.Constructor with givenPathPatternParser
. -
Method Summary
Modifier and TypeMethodDescriptiongetPatternComparator
(org.springframework.util.RouteMatcher.Route route) boolean
boolean
matchAndExtract
(String pattern, org.springframework.util.RouteMatcher.Route route) org.springframework.util.RouteMatcher.Route
parseRoute
(String routeValue)
-
Constructor Details
-
PathPatternRouteMatcher
public PathPatternRouteMatcher()Default constructor withPathPatternParser
customized forMESSAGE_ROUTE
and without matching of trailing separator. -
PathPatternRouteMatcher
Constructor with givenPathPatternParser
.
-
-
Method Details
-
parseRoute
- Specified by:
parseRoute
in interfaceorg.springframework.util.RouteMatcher
-
isPattern
- Specified by:
isPattern
in interfaceorg.springframework.util.RouteMatcher
-
combine
- Specified by:
combine
in interfaceorg.springframework.util.RouteMatcher
-
match
- Specified by:
match
in interfaceorg.springframework.util.RouteMatcher
-
matchAndExtract
@Nullable public Map<String,String> matchAndExtract(String pattern, org.springframework.util.RouteMatcher.Route route) - Specified by:
matchAndExtract
in interfaceorg.springframework.util.RouteMatcher
-
getPatternComparator
- Specified by:
getPatternComparator
in interfaceorg.springframework.util.RouteMatcher
-