Class PathPatternRouteMatcher

java.lang.Object
org.springframework.web.util.pattern.PathPatternRouteMatcher
All Implemented Interfaces:
org.springframework.util.RouteMatcher

public class PathPatternRouteMatcher extends Object implements org.springframework.util.RouteMatcher
RouteMatcher built on PathPatternParser that uses PathContainer and PathPattern as parsed representations of routes and patterns.
Since:
5.2
Author:
Rossen Stoyanchev
  • Constructor Details

  • Method Details

    • parseRoute

      public org.springframework.util.RouteMatcher.Route parseRoute(String routeValue)
      Specified by:
      parseRoute in interface org.springframework.util.RouteMatcher
    • isPattern

      public boolean isPattern(String route)
      Specified by:
      isPattern in interface org.springframework.util.RouteMatcher
    • combine

      public String combine(String pattern1, String pattern2)
      Specified by:
      combine in interface org.springframework.util.RouteMatcher
    • match

      public boolean match(String pattern, org.springframework.util.RouteMatcher.Route route)
      Specified by:
      match in interface org.springframework.util.RouteMatcher
    • matchAndExtract

      @Nullable public Map<String,String> matchAndExtract(String pattern, org.springframework.util.RouteMatcher.Route route)
      Specified by:
      matchAndExtract in interface org.springframework.util.RouteMatcher
    • getPatternComparator

      public Comparator<String> getPatternComparator(org.springframework.util.RouteMatcher.Route route)
      Specified by:
      getPatternComparator in interface org.springframework.util.RouteMatcher