Class RequestMatchResult
- java.lang.Object
- org.springframework.web.servlet.handler.RequestMatchResult
public class RequestMatchResult extends Object
Container for the result from request pattern matching viaMatchableHandlerMapping
with a method to further extract URI template variables from the pattern.- Since:
- 4.3.1
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)
Create an instance with a matching pattern.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
extractUriTemplateVariables()
Extract URI template variables from the matching pattern as defined inPathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String)
.
Constructor Detail
RequestMatchResult
public RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)
Create an instance with a matching pattern.- Parameters:
matchingPattern
- the matching pattern, possibly not the same as the input pattern, e.g. inputPattern="/foo" and matchingPattern="/foo/".lookupPath
- the lookup path extracted from the requestpathMatcher
- the PathMatcher used
Method Detail
extractUriTemplateVariables
public Map<String,String> extractUriTemplateVariables()
Extract URI template variables from the matching pattern as defined inPathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String)
.- Returns:
- a map with URI template variables