Class SlingFilterChainHelper
java.lang.Object
org.apache.sling.engine.impl.filter.SlingFilterChainHelper
The
SlingFilterChainHelper
class is used by Sling to
support building lists of Filter
s. 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean) Add a filterReturns the list ofFilter
s added to this instance.boolean
removeFilterById
(long filterId)
-
Constructor Details
-
SlingFilterChainHelper
public SlingFilterChainHelper()
-
-
Method Details
-
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
Returns the list ofFilter
s 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
-