Class SimpleNamedFilterList
java.lang.Object
org.apache.shiro.web.filter.mgt.SimpleNamedFilterList
- All Implemented Interfaces:
Iterable<javax.servlet.Filter>,Collection<javax.servlet.Filter>,List<javax.servlet.Filter>,NamedFilterList
Simple
NamedFilterList implementation that is supported by a backing List instance and a simple
name property. All List method implementations are immediately delegated to the
wrapped backing list.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleNamedFilterList(String name) Creates a newSimpleNamedFilterListinstance with the specifiedname, defaulting to a newArrayListinstance as the backing list.SimpleNamedFilterList(String name, List<javax.servlet.Filter> backingList) Creates a newSimpleNamedFilterListinstance with the specifiednameandbackingList. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, javax.servlet.Filter filter) booleanadd(javax.servlet.Filter filter) booleanaddAll(int index, Collection<? extends javax.servlet.Filter> c) booleanaddAll(Collection<? extends javax.servlet.Filter> c) voidclear()booleanbooleancontainsAll(Collection<?> c) javax.servlet.Filterget(int index) getName()Returns the configuration-unique name assigned to thisFilterlist.intbooleanisEmpty()Iterator<javax.servlet.Filter> iterator()intListIterator<javax.servlet.Filter> ListIterator<javax.servlet.Filter> listIterator(int index) javax.servlet.FilterChainproxy(javax.servlet.FilterChain orig) Returns a newFilterChaininstance that will first execute this list'sFilters (in list order) and end with the execution of the givenfilterChaininstance.javax.servlet.Filterremove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) javax.servlet.Filterset(int index, javax.servlet.Filter filter) protected voidintsize()List<javax.servlet.Filter> subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
SimpleNamedFilterList
Creates a newSimpleNamedFilterListinstance with the specifiedname, defaulting to a newArrayListinstance as the backing list.- Parameters:
name- the name to assign to this instance.- Throws:
IllegalArgumentException- ifnameis null or empty.
-
SimpleNamedFilterList
Creates a newSimpleNamedFilterListinstance with the specifiednameandbackingList.- Parameters:
name- the name to assign to this instance.backingList- the list instance used to back all of this class'sListmethod implementations.- Throws:
IllegalArgumentException- ifnameis null or empty.NullPointerException- if the backing list isnull.
-
-
Method Details
-
setName
-
getName
Description copied from interface:NamedFilterListReturns the configuration-unique name assigned to thisFilterlist.- Specified by:
getNamein interfaceNamedFilterList- Returns:
- the configuration-unique name assigned to this
Filterlist.
-
proxy
Description copied from interface:NamedFilterListReturns a newFilterChaininstance that will first execute this list'sFilters (in list order) and end with the execution of the givenfilterChaininstance.- Specified by:
proxyin interfaceNamedFilterList- Parameters:
orig- theFilterChaininstance to execute after this list'sFilters have executed.- Returns:
- a new
FilterChaininstance that will first execute this list'sFilters (in list order) and end with the execution of the givenfilterChaininstance.
-
add
- Specified by:
addin interfaceCollection<javax.servlet.Filter>- Specified by:
addin interfaceList<javax.servlet.Filter>
-
add
-
addAll
- Specified by:
addAllin interfaceCollection<javax.servlet.Filter>- Specified by:
addAllin interfaceList<javax.servlet.Filter>
-
addAll
-
clear
- Specified by:
clearin interfaceCollection<javax.servlet.Filter>- Specified by:
clearin interfaceList<javax.servlet.Filter>
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<javax.servlet.Filter>- Specified by:
containsAllin interfaceList<javax.servlet.Filter>
-
get
-
indexOf
-
isEmpty
- Specified by:
isEmptyin interfaceCollection<javax.servlet.Filter>- Specified by:
isEmptyin interfaceList<javax.servlet.Filter>
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<javax.servlet.Filter>
-
listIterator
- Specified by:
listIteratorin interfaceList<javax.servlet.Filter>
-
listIterator
- Specified by:
listIteratorin interfaceList<javax.servlet.Filter>
-
remove
-
remove
-
removeAll
- Specified by:
removeAllin interfaceCollection<javax.servlet.Filter>- Specified by:
removeAllin interfaceList<javax.servlet.Filter>
-
retainAll
- Specified by:
retainAllin interfaceCollection<javax.servlet.Filter>- Specified by:
retainAllin interfaceList<javax.servlet.Filter>
-
set
-
size
- Specified by:
sizein interfaceCollection<javax.servlet.Filter>- Specified by:
sizein interfaceList<javax.servlet.Filter>
-
subList
-
toArray
-
toArray
- Specified by:
toArrayin interfaceCollection<javax.servlet.Filter>- Specified by:
toArrayin interfaceList<javax.servlet.Filter>
-