类 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.- 从以下版本开始:
- 4.3.1
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)
Create an instance with a matching pattern.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,String>
extractUriTemplateVariables()
Extract URI template variables from the matching pattern as defined inPathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String)
.
构造器详细资料
RequestMatchResult
public RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)
Create an instance with a matching pattern.- 参数:
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
方法详细资料
extractUriTemplateVariables
public Map<String,String> extractUriTemplateVariables()
Extract URI template variables from the matching pattern as defined inPathMatcher.extractUriTemplateVariables(java.lang.String, java.lang.String)
.- 返回:
- a map with URI template variables