Interface MatchableHandlerMapping
- All Superinterfaces:
HandlerMapping
- All Known Implementing Classes:
AbstractControllerUrlHandlerMapping,AbstractDetectingUrlHandlerMapping,AbstractUrlHandlerMapping,BeanNameUrlHandlerMapping,ControllerBeanNameHandlerMapping,ControllerClassNameHandlerMapping,DefaultAnnotationHandlerMapping,RequestMappingHandlerMapping,SimpleUrlHandlerMapping,WebSocketHandlerMapping
public interface MatchableHandlerMapping extends HandlerMapping
Additional interface that aHandlerMappingcan implement to expose a request matching API aligned with its internal request matching configuration and implementation.- Since:
- 4.3.1
- Author:
- Rossen Stoyanchev
- See Also:
HandlerMappingIntrospector
Field Summary
Fields inherited from interface org.springframework.web.servlet.HandlerMapping
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestMatchResultmatch(HttpServletRequest request, String pattern)Determine whether the given request matches the request criteria.Methods inherited from interface org.springframework.web.servlet.HandlerMapping
getHandler
Method Detail
match
RequestMatchResult match(HttpServletRequest request, String pattern)
Determine whether the given request matches the request criteria.- Parameters:
request- the current requestpattern- the pattern to match- Returns:
- the result from request matching, or
nullif none