Interface PathFilter
- All Known Implementing Classes:
DefaultPathFilter
The item filter is used to include or exclude a set of paths.
It is usually part of a
PathFilterSet.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PathFilterThe "Catch all" item filter.static final PathFilterThe "Miss all" item filter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the pattern is absolute, i.e.booleanChecks if the given path matches this filters criteria.@NotNull PathFiltertranslate(@Nullable PathMapping mapping) Translates this path filter with the given mapping.
-
Field Details
-
ALL
The "Catch all" item filter. -
NONE
The "Miss all" item filter.
-
-
Method Details
-
matches
Checks if the given path matches this filters criteria.- Parameters:
path- the path to check- Returns:
trueif this filter matches the criteria;falseotherwise.
-
isAbsolute
boolean isAbsolute()Checks if the pattern is absolute, i.e. does not start with a wildcard.- Returns:
trueif pattern is absolute
-
translate
Translates this path filter with the given mapping. Note that only absolute filters can be translated.- Parameters:
mapping- the mapping to apply- Returns:
- the new filter
- Since:
- 2.4.10
-