public class SlingFilterChainHelper extends Object
SlingFilterChainHelper class is used by Sling to
support building lists of Filters. 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.| Modifier and Type | Method and Description |
|---|---|
javax.servlet.Filter |
addFilter(javax.servlet.Filter filter,
FilterPredicate pattern,
long filterId,
int order,
String orderSource,
FilterProcessorMBeanImpl mbean) |
FilterHandle[] |
getFilters()
Returns the list of
Filters added to this instance
or null if no filters have been added. |
boolean |
removeFilterById(long filterId) |
public javax.servlet.Filter addFilter(javax.servlet.Filter filter,
FilterPredicate pattern,
long filterId,
int order,
String orderSource,
FilterProcessorMBeanImpl mbean)
public boolean removeFilterById(long filterId)
public FilterHandle[] getFilters()
Filters added to this instance
or null if no filters have been added.
This method doesn't need to be synced as it is called from synced methods.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.