Class SlingFilterChainHelper
- java.lang.Object
-
- org.apache.sling.engine.impl.filter.SlingFilterChainHelper
-
public class SlingFilterChainHelper extends Object
TheSlingFilterChainHelperclass is used by Sling to support building lists ofFilters. To ensure filter ordering, each filter is optionally registered with an ordering index. If none is provided the default ordering index is Integer.MAX_VALUE to append the filter to the end of the list.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.FilteraddFilter(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)FilterHandle[]getFilters()Returns the list ofFilters added to this instance ornullif no filters have been added.booleanremoveFilterById(long filterId)
-
-
-
Method Detail
-
addFilter
public javax.servlet.Filter addFilter(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)
-
removeFilterById
public boolean removeFilterById(long filterId)
-
getFilters
public FilterHandle[] getFilters()
Returns the list ofFilters added to this instance ornullif no filters have been added. This method doesn't need to be synced as it is called from synced methods.- Returns:
- the filters
-
-