接口 MatchableHandlerMapping
- 所有超级接口:
HandlerMapping
- 所有已知实现类:
AbstractControllerUrlHandlerMapping
,AbstractDetectingUrlHandlerMapping
,AbstractUrlHandlerMapping
,BeanNameUrlHandlerMapping
,ControllerBeanNameHandlerMapping
,ControllerClassNameHandlerMapping
,DefaultAnnotationHandlerMapping
,RequestMappingHandlerMapping
,SimpleUrlHandlerMapping
,WebSocketHandlerMapping
public interface MatchableHandlerMapping extends HandlerMapping
Additional interface that aHandlerMapping
can implement to expose a request matching API aligned with its internal request matching configuration and implementation.- 从以下版本开始:
- 4.3.1
- 作者:
- Rossen Stoyanchev
- 另请参阅:
HandlerMappingIntrospector
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RequestMatchResult
match(HttpServletRequest request, String pattern)
Determine whether the given request matches the request criteria.从接口继承的方法 org.springframework.web.servlet.HandlerMapping
getHandler
方法详细资料
match
RequestMatchResult match(HttpServletRequest request, String pattern)
Determine whether the given request matches the request criteria.- 参数:
request
- the current requestpattern
- the pattern to match- 返回:
- the result from request matching, or
null
if none