Package org.eclipse.jetty.util
Class PathWatcher.Config
java.lang.Object
org.eclipse.jetty.util.PathWatcher.Config
- Enclosing class:
PathWatcher
@Deprecated(since="2021-05-27")
public static class PathWatcher.Config
extends Object
implements Predicate<Path>
Deprecated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclude(String syntaxAndPattern) Deprecated.Add an exclude PathMatcher.voidaddExclude(PathMatcher matcher) Deprecated.Add an exclude PathMatchervoidaddExcludeGlobRelative(String pattern) Deprecated.Add aglob:syntax pattern exclude reference in a directory relative, os neutral, pattern.voidDeprecated.Exclude hidden files and hidden directoriesvoidaddExcludes(List<String> syntaxAndPatterns) Deprecated.Add multiple exclude PathMatchersvoidaddInclude(String syntaxAndPattern) Deprecated.Add an include PathMatchervoidaddInclude(PathMatcher matcher) Deprecated.Add an include PathMatchervoidaddIncludeGlobRelative(String pattern) Deprecated.Add aglob:syntax pattern reference in a directory relative, os neutral, pattern.voidaddIncludes(List<String> syntaxAndPatterns) Deprecated.Add multiple include PathMatchersasSubConfig(Path dir) Deprecated.Build a new config from a this configuration.Deprecated.getPath()Deprecated.intDeprecated.booleanDeprecated.booleanisPaused(long now) Deprecated.booleanDeprecated.Deprecated.voidsetPauseUntil(long time) Deprecated.voidsetRecurseDepth(int depth) Deprecated.Set the recurse depth for the directory scanning.booleanDeprecated.toShortPath(Path path) Deprecated.toString()Deprecated.
-
Field Details
-
UNLIMITED_DEPTH
public static final int UNLIMITED_DEPTHDeprecated.- See Also:
-
-
Constructor Details
-
Config
Deprecated. -
Config
Deprecated.
-
-
Method Details
-
getParent
Deprecated. -
setPauseUntil
public void setPauseUntil(long time) Deprecated. -
isPaused
public boolean isPaused(long now) Deprecated. -
addExclude
Deprecated.Add an exclude PathMatcher- Parameters:
matcher- the path matcher for this exclude
-
addExclude
Deprecated.Add an exclude PathMatcher.Note: this pattern is FileSystem specific (so use "/" for Linux and OSX, and "\\" for Windows)
- Parameters:
syntaxAndPattern- the PathMatcher syntax and pattern to use- See Also:
-
addExcludeGlobRelative
Deprecated.Add aglob:syntax pattern exclude reference in a directory relative, os neutral, pattern.On Linux: Config config = new Config(Path("/home/user/example")); config.addExcludeGlobRelative("*.war") => "glob:/home/user/example/*.war" On Windows Config config = new Config(Path("D:/code/examples")); config.addExcludeGlobRelative("*.war") => "glob:D:\\code\\examples\\*.war"- Parameters:
pattern- the pattern, in unixy format, relative to config.dir
-
addExcludeHidden
public void addExcludeHidden()Deprecated.Exclude hidden files and hidden directories -
addExcludes
Deprecated.Add multiple exclude PathMatchers- Parameters:
syntaxAndPatterns- the list of PathMatcher syntax and patterns to use- See Also:
-
addInclude
Deprecated.Add an include PathMatcher- Parameters:
matcher- the path matcher for this include
-
addInclude
Deprecated.Add an include PathMatcher- Parameters:
syntaxAndPattern- the PathMatcher syntax and pattern to use- See Also:
-
addIncludeGlobRelative
Deprecated.Add aglob:syntax pattern reference in a directory relative, os neutral, pattern.On Linux: Config config = new Config(Path("/home/user/example")); config.addIncludeGlobRelative("*.war") => "glob:/home/user/example/*.war" On Windows Config config = new Config(Path("D:/code/examples")); config.addIncludeGlobRelative("*.war") => "glob:D:\\code\\examples\\*.war"- Parameters:
pattern- the pattern, in unixy format, relative to config.dir
-
addIncludes
Deprecated.Add multiple include PathMatchers- Parameters:
syntaxAndPatterns- the list of PathMatcher syntax and patterns to use- See Also:
-
asSubConfig
Deprecated.Build a new config from a this configuration.Useful for working with sub-directories that also need to be watched.
- Parameters:
dir- the directory to build new Config from (using this config as source of includes/excludes)- Returns:
- the new Config
-
getRecurseDepth
public int getRecurseDepth()Deprecated. -
isRecurseDepthUnlimited
public boolean isRecurseDepthUnlimited()Deprecated. -
getPath
Deprecated. -
resolve
Deprecated. -
test
Deprecated. -
setRecurseDepth
public void setRecurseDepth(int depth) Deprecated.Set the recurse depth for the directory scanning.-999 indicates arbitrarily deep recursion, 0 indicates no recursion, 1 is only one directory deep, and so on.
- Parameters:
depth- the number of directories deep to recurse
-
isHidden
Deprecated. -
toShortPath
Deprecated. -
toString
Deprecated.
-