Class PathMatcher

  • All Implemented Interfaces:
    org.springframework.util.PathMatcher

    public class PathMatcher
    extends org.springframework.util.AntPathMatcher
    Custom Spring MVC PathMatcher class - extends the AntPathMatcher to fix undesirable features with URI path tokenization. The AntPathMatcher breaks the path down into tokens and then performs a trim() on each. But it is perfectly legal to expect a decoded path such as "/abc/ something /foldername".
    Author:
    Kevin Roast
    • Field Summary

      • Fields inherited from class org.springframework.util.AntPathMatcher

        DEFAULT_PATH_SEPARATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      PathMatcher()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String extractPathWithinPattern​(java.lang.String pattern, java.lang.String path)  
      • Methods inherited from class org.springframework.util.AntPathMatcher

        combine, doMatch, extractUriTemplateVariables, getPatternComparator, isPattern, match, matchStart, setPathSeparator, setTrimTokens, tokenizePath
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathMatcher

        public PathMatcher()
    • Method Detail

      • extractPathWithinPattern

        public java.lang.String extractPathWithinPattern​(java.lang.String pattern,
                                                         java.lang.String path)
        Specified by:
        extractPathWithinPattern in interface org.springframework.util.PathMatcher
        Overrides:
        extractPathWithinPattern in class org.springframework.util.AntPathMatcher