Class PathMatcher


  • public class PathMatcher
    extends Object
    Web path matching utility. Pattern to be matched can use
  • individual '?' character to represent any character
  • individual '*' character to represent any sequence of characters except '/'
  • path segment with only '*' character (more than one) to represent any sequence of path elements
  • PathMatcher.instance("/foo/**") represents paths like /foo or /foo/bar/one
  • PathMatcher.instance("/foo/*.xml") represents paths like /foo/a.xml or /foo/bar.xml
  • PathMatcher.instance("/foo/?.xml") represents paths like /foo/a.xml or /foo/b.xml
Author:
antons