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.
together with HandlerMappingIntrospector without a replacement.
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
  • Method Details

    • getPatternParser

      default @Nullable PathPatternParser getPatternParser()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the parser of this HandlerMapping, if configured in which case pre-parsed patterns are used.
      Since:
      5.3
    • match

      Deprecated, for removal: This API element is subject to removal in a future version.
      use of PathMatcher and UrlPathHelper is deprecated for use at runtime in web modules in favor of parsed patterns with PathPatternParser.
      Determine whether the request matches the given pattern. Use this method when getPatternParser() returns null which means that the HandlerMapping is using String pattern matching.
      Parameters:
      request - the current request
      pattern - the pattern to match
      Returns:
      the result from request matching, or null if none