Class GlobbingPathHelper
java.lang.Object
org.apache.jackrabbit.oak.plugins.observation.filter.GlobbingPathHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringglobPathAsRegex(String pathWithGlobs) Converts the provided path containing glob characters*and**into a regular expression.
-
Constructor Details
-
GlobbingPathHelper
public GlobbingPathHelper()
-
-
Method Details
-
globPathAsRegex
Converts the provided path containing glob characters*and**into a regular expression. The definition matches that of the GlobbingPathFilter with the addition that this conversion also supports sub-paths which do not start with a/.The rules are:
- leading
**matches/fooandbar - leading
/**matches/foobut notbar - intermittent
**matches zero or any number of path elements - trailing
**matches anything not ending with a/ - single
*matches anything except/ ?is not a special character- anything not a star is wrapped into
\Q...\Epairs
- Parameters:
pathWithGlobs- path that can contain * and **- Returns:
- a regular expression
- See Also:
- leading
-