public class PathMatcher extends java.lang.Object implements Matcher
| Constructor and Description |
|---|
PathMatcher() |
PathMatcher(java.lang.String regexpPath) |
| Modifier and Type | Method and Description |
|---|---|
PathMatcher |
excludeBranch(java.lang.String path)
Convenience method for excluding all paths starting with a prefix e.g.
|
PathMatcher |
excludePath(java.lang.String path)
Any path exactly matching this string will be excluded.
|
PathMatcher |
excludeRegex(java.lang.String regex)
Any path matching this regex will be excluded.
|
java.util.Set<java.lang.String> |
getExcludedPaths() |
java.util.Set<java.util.regex.Pattern> |
getExcludedPatterns() |
boolean |
matches(WebContext context)
Check if the web context matches.
|
void |
setExcludedPaths(java.util.Collection<java.lang.String> paths) |
void |
setExcludedPatterns(java.util.Collection<java.lang.String> regularExpressions) |
public PathMatcher()
public PathMatcher(java.lang.String regexpPath)
public PathMatcher excludePath(java.lang.String path)
path - the path to be excludedpublic PathMatcher excludeBranch(java.lang.String path)
path - the prefix for the paths to be excludedpublic PathMatcher excludeRegex(java.lang.String regex)
regex - the regular expression matching the paths to be excludedpublic boolean matches(WebContext context)
Matcherpublic java.util.Set<java.lang.String> getExcludedPaths()
public java.util.Set<java.util.regex.Pattern> getExcludedPatterns()
public void setExcludedPaths(java.util.Collection<java.lang.String> paths)
public void setExcludedPatterns(java.util.Collection<java.lang.String> regularExpressions)
Copyright © 2018. All Rights Reserved.