Class RequestMatchResult

java.lang.Object
org.springframework.web.servlet.handler.RequestMatchResult

@Deprecated(since="7.0", forRemoval=true) public class RequestMatchResult extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
together with HandlerMappingIntrospector without a replacement.
Container for the result from request pattern matching via MatchableHandlerMapping with a method to further extract URI template variables from the pattern.
Since:
4.3.1
Author:
Rossen Stoyanchev
  • Constructor Details

    • RequestMatchResult

      public RequestMatchResult(PathPattern pathPattern, PathContainer lookupPath)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create an instance with the matched PathPattern.
      Parameters:
      pathPattern - the pattern that was matched
      lookupPath - the mapping path
      Since:
      5.3
    • RequestMatchResult

      @Deprecated(since="7.0", forRemoval=true) public RequestMatchResult(String pattern, String lookupPath, PathMatcher pathMatcher)
      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.
      Create an instance with the matched String pattern.
      Parameters:
      pattern - the pattern that was matched, possibly with a '/' appended
      lookupPath - the mapping path
      pathMatcher - the PathMatcher instance used for the match
  • Method Details

    • extractUriTemplateVariables

      public Map<String,String> extractUriTemplateVariables()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Extract URI template variables from the matching pattern as defined in PathPattern.matchAndExtract(PathContainer).
      Returns:
      a map with URI template variables