Package org.eclipse.jetty.start
Class PathMatchers
- java.lang.Object
-
- org.eclipse.jetty.start.PathMatchers
-
public class PathMatchers extends Object
Common PathMatcher implementations.
-
-
Constructor Summary
Constructors Constructor Description PathMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathMatchergetMatcher(String rawpattern)static PathMatchergetNonHidden()static PathgetSearchRoot(String pattern)Provide the non-glob / non-regex prefix on the pattern as a Path reference.static booleanisAbsolute(String pattern)Tests if provided pattern is an absolute reference (or not)
-
-
-
Method Detail
-
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.
-
-