@NutFilterService public class RegexRemoveNutFilter extends Object implements NutFilter
This filter can remove paths matching a regex.
Constructor and Description |
---|
RegexRemoveNutFilter(Boolean enabled,
String[] regex)
Builds a new instance.
|
@ConfigConstructor public RegexRemoveNutFilter(@BooleanConfigParam(propertyKey="c.g.wuic.filter.enable",defaultValue=true) Boolean enabled, @ObjectConfigParam(propertyKey="c.g.wuic.filter.regexExpressions",defaultValue="",setter=RegexExpressionsPropertySetter.class) String[] regex)
Builds a new instance. If a regex can't be compiled, a PatternSyntaxException
will be thrown.
enabled
- if the filter is activatedregex
- all the exclusion regexpublic List<String> filterPaths(List<String> paths)
Filters the given paths list provided by the NutsHeap
associated to the specified ID
and returns the result.
Depending of the implementation, the result could be the instance specified in parameter or a new one
filterPaths
in interface NutFilter
paths
- the paths to filterCopyright © 2012-2015. All Rights Reserved.