Interface MatchableHandlerMapping
- All Superinterfaces:
HandlerMapping
- All Known Implementing Classes:
AbstractDetectingUrlHandlerMapping, AbstractUrlHandlerMapping, BeanNameUrlHandlerMapping, RequestMappingHandlerMapping, RouterFunctionMapping, SimpleUrlHandlerMapping, WebSocketHandlerMapping
@Deprecated(since="7.0",
forRemoval=true)
public interface MatchableHandlerMapping
extends HandlerMapping
Deprecated, for removal: This API element is subject to removal in a future version.
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
-
Field Summary
Fields inherited from interface HandlerMapping
API_VERSION_ATTRIBUTE, BEST_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 Summary
Modifier and TypeMethodDescriptiondefault @Nullable PathPatternParserDeprecated, for removal: This API element is subject to removal in a future version.Return the parser of thisHandlerMapping, if configured in which case pre-parsed patterns are used.Deprecated, for removal: This API element is subject to removal in a future version.use ofPathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.Methods inherited from interface HandlerMapping
getHandler, usesPathPatterns
-
Method Details
-
getPatternParser
Deprecated, for removal: This API element is subject to removal in a future version.Return the parser of thisHandlerMapping, if configured in which case pre-parsed patterns are used.- Since:
- 5.3
-
match
@Deprecated(since="7.0", forRemoval=true) @Nullable RequestMatchResult match(jakarta.servlet.http.HttpServletRequest request, String pattern) Deprecated, for removal: This API element is subject to removal in a future version.use ofPathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.Determine whether the request matches the given pattern. Use this method whengetPatternParser()returnsnullwhich means that theHandlerMappingis using String pattern matching.- Parameters:
request- the current requestpattern- the pattern to match- Returns:
- the result from request matching, or
nullif none
-
HandlerMappingIntrospectorwithout a replacement.