public class SlingFilterChainHelper extends Object
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.Modifier and Type | Method and Description |
---|---|
javax.servlet.Filter |
addFilter(javax.servlet.Filter filter,
String pattern,
Long filterId,
int order,
String orderSource,
FilterProcessorMBeanImpl mbean) |
FilterHandle[] |
getFilters()
Returns the list of
Filter s added to this instance
or null if no filters have been added. |
boolean |
removeFilterById(Object filterId) |
public javax.servlet.Filter addFilter(javax.servlet.Filter filter, String pattern, Long filterId, int order, String orderSource, FilterProcessorMBeanImpl mbean)
public boolean removeFilterById(Object filterId)
public FilterHandle[] getFilters()
Filter
s 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–2016 The Apache Software Foundation. All rights reserved.