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 | Class and Description |
|---|---|
static class |
SlingFilterChainHelper.FilterListEntry |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.Filter |
addFilter(javax.servlet.Filter filter,
Long filterId,
int order,
String orderSource) |
SlingFilterChainHelper.FilterListEntry[] |
getFilterListEntries()
Returns the list of
FilterListEntrys added to this instance
or null if no filters have been added. |
javax.servlet.Filter[] |
getFilters()
Returns the list of
Filters 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,
Long filterId,
int order,
String orderSource)
public boolean removeFilterById(Object filterId)
public javax.servlet.Filter[] 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 only
returned the current cached filter array.public SlingFilterChainHelper.FilterListEntry[] getFilterListEntries()
FilterListEntrys added to this instance
or null if no filters have been added.Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.