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