Interface MatchableHandlerMapping
- All Superinterfaces:
- HandlerMapping
- All Known Implementing Classes:
- AbstractDetectingUrlHandlerMapping,- AbstractUrlHandlerMapping,- BeanNameUrlHandlerMapping,- RequestMappingHandlerMapping,- RouterFunctionMapping,- SimpleUrlHandlerMapping,- WebSocketHandlerMapping
Additional interface that a 
HandlerMapping can 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:
- 
Field SummaryFields inherited from interface org.springframework.web.servlet.HandlerMappingBEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
- 
Method SummaryModifier and TypeMethodDescriptiondefault PathPatternParserReturn the parser of thisHandlerMapping, if configured in which case pre-parsed patterns are used.match(HttpServletRequest request, String pattern) Determine whether the request matches the given pattern.Methods inherited from interface org.springframework.web.servlet.HandlerMappinggetHandler, usesPathPatterns
- 
Method Details- 
getPatternParserReturn the parser of thisHandlerMapping, if configured in which case pre-parsed patterns are used.- Since:
- 5.3
 
- 
matchDetermine whether the request matches the given pattern. Use this method whengetPatternParser()returnsnullwhich means that theHandlerMappingis using String pattern matching.- Parameters:
- request- the current request
- pattern- the pattern to match
- Returns:
- the result from request matching, or nullif none
 
 
-