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
|
PathMatcherPredicate(String pattern,
PredicateType predicateType,
boolean caseSensitive)
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, PredicateType predicateType, boolean caseSensitive)
pattern - the pattern to be used to test paths.predicateType - if is gonna a match local file system or a remote file system ex:ftp , sftpcaseSensitive - if the predicateType is a external file system predicate this set the case sensitivityCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.