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.
-
-
Constructor Summary
Constructors Constructor Description SlingFilterChainHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)Add a filterFilterHandle[]getFilters()Returns the list ofFilters added to this instance.booleanremoveFilterById(long filterId)
-
-
-
Method Detail
-
addFilter
public void addFilter(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)Add a filter- Parameters:
filter- The filterpattern- Optional patternfilterId- Id of the filterorder- The order indexorderSource- The source for the ordermbean- MBean
-
removeFilterById
public boolean removeFilterById(long filterId)
-
getFilters
public FilterHandle[] getFilters()
Returns the list ofFilters added to this instance. The array might be empty This method doesn't need to be synced as the update is atomioc.- Returns:
- the filters
-
-