public class RequestMatchResult extends Object
MatchableHandlerMapping
with a method to further extract
URI template variables from the pattern.Constructor and Description |
---|
RequestMatchResult(PathPattern pathPattern,
PathContainer lookupPath)
Create an instance with the matched
PathPattern . |
RequestMatchResult(String pattern,
String lookupPath,
PathMatcher pathMatcher)
Create an instance with the matched String pattern.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
extractUriTemplateVariables()
Extract URI template variables from the matching pattern as defined in
PathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String) . |
public RequestMatchResult(PathPattern pathPattern, PathContainer lookupPath)
PathPattern
.pathPattern
- the pattern that was matchedlookupPath
- the mapping pathpublic RequestMatchResult(String pattern, String lookupPath, PathMatcher pathMatcher)
pattern
- the pattern that was matched, possibly with a '/' appendedlookupPath
- the mapping pathpathMatcher
- the PathMatcher instance used for the matchpublic Map<String,String> extractUriTemplateVariables()
PathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String)
.