Class PathMatcher

java.lang.Object
org.springframework.util.AntPathMatcher
org.springframework.extensions.webscripts.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
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.util.AntPathMatcher

    org.springframework.util.AntPathMatcher.AntPathStringMatcher, org.springframework.util.AntPathMatcher.AntPatternComparator
  • Field Summary

    Fields inherited from class org.springframework.util.AntPathMatcher

    DEFAULT_PATH_SEPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.springframework.util.AntPathMatcher

    combine, doMatch, extractUriTemplateVariables, getPatternComparator, getStringMatcher, isPattern, match, matchStart, setCachePatterns, setCaseSensitive, setPathSeparator, setTrimTokens, tokenizePath, tokenizePattern

    Methods inherited from class java.lang.Object

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

    • PathMatcher

      public PathMatcher()
  • Method Details

    • extractPathWithinPattern

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