Class PathMatchers

java.lang.Object
org.eclipse.jetty.start.PathMatchers

public class PathMatchers extends Object
Common PathMatcher implementations.
  • Constructor Details

    • PathMatchers

      public PathMatchers()
  • Method Details

    • getMatcher

      public static PathMatcher getMatcher(String rawpattern)
    • getNonHidden

      public static PathMatcher getNonHidden()
    • getSearchRoot

      public static Path getSearchRoot(String pattern)
      Provide the non-glob / non-regex prefix on the pattern as a Path reference.
      Parameters:
      pattern - the pattern to test
      Returns:
      the Path representing the search root for the pattern provided.
    • isAbsolute

      public static boolean isAbsolute(String pattern)
      Tests if provided pattern is an absolute reference (or not)
      Parameters:
      pattern - the pattern to test
      Returns:
      true if pattern is an absolute reference.