public final class PathMatcherPredicate extends Object implements Predicate<String>
Predicate which tests random paths in String representation to match a specific pattern.
The pattern can be either a regex or glob expression. The pattern can qualify itself by using thee "glob:" or "regex:" prefixes. If no prefix is supplied, glob is assumed by default.
| Constructor and Description |
|---|
PathMatcherPredicate(String pattern)
Creates a new instance using the given pattern using the native implementation and file system rules.
|
PathMatcherPredicate(String pattern,
boolean caseSensitive,
String fileSeparator)
Creates a new instance using the given pattern.
|
public PathMatcherPredicate(String pattern)
pattern - the pattern to be used to test paths.public PathMatcherPredicate(String pattern, boolean caseSensitive, String fileSeparator)
pattern - the pattern to be used to test paths.caseSensitive - whether matching is case-sensitivefileSeparator - what separates a path componentsCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.