Class SlingFilterChainHelper
- java.lang.Object
-
- org.apache.sling.engine.impl.filter.SlingFilterChainHelper
-
public class SlingFilterChainHelper extends Object
TheSlingFilterChainHelper
class is used by Sling to support building lists ofFilter
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.Filter
addFilter(javax.servlet.Filter filter, FilterPredicate pattern, long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)
FilterHandle[]
getFilters()
Returns the list ofFilter
s added to this instance ornull
if no filters have been added.boolean
removeFilterById(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 ofFilter
s added to this instance ornull
if no filters have been added. This method doesn't need to be synced as it is called from synced methods.- Returns:
- the filters
-
-