Class RequestMatchResult
java.lang.Object
org.springframework.web.servlet.handler.RequestMatchResult
Container for the result from request pattern matching via
MatchableHandlerMapping
with a method to further extract
URI template variables from the pattern.- Since:
- 4.3.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionRequestMatchResult
(String pattern, String lookupPath, PathMatcher pathMatcher) Deprecated, for removal: This API element is subject to removal in a future version.RequestMatchResult
(PathPattern pathPattern, PathContainer lookupPath) Create an instance with the matchedPathPattern
. -
Method Summary
Modifier and TypeMethodDescriptionExtract URI template variables from the matching pattern as defined inPathPattern.matchAndExtract(PathContainer)
.
-
Constructor Details
-
RequestMatchResult
Create an instance with the matchedPathPattern
.- Parameters:
pathPattern
- the pattern that was matchedlookupPath
- the mapping path- Since:
- 5.3
-
RequestMatchResult
@Deprecated(since="7.0", forRemoval=true) public RequestMatchResult(String pattern, String lookupPath, PathMatcher pathMatcher) Deprecated, for removal: This API element is subject to removal in a future version.use ofPathMatcher
andUrlPathHelper
is deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser
.Create an instance with the matched String pattern.- Parameters:
pattern
- the pattern that was matched, possibly with a '/' appendedlookupPath
- the mapping pathpathMatcher
- the PathMatcher instance used for the match
-
-
Method Details
-
extractUriTemplateVariables
Extract URI template variables from the matching pattern as defined inPathPattern.matchAndExtract(PathContainer)
.- Returns:
- a map with URI template variables
-
PathMatcher
andUrlPathHelper
is deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser
.