public class SimpleNamedFilterList extends Object implements NamedFilterList
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.| Constructor and Description |
|---|
SimpleNamedFilterList(String name)
Creates a new
SimpleNamedFilterList instance with the specified name, defaulting to a new
ArrayList instance as the backing list. |
SimpleNamedFilterList(String name,
List<javax.servlet.Filter> backingList)
Creates a new
SimpleNamedFilterList instance with the specified name and backingList. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(javax.servlet.Filter filter) |
void |
add(int index,
javax.servlet.Filter filter) |
boolean |
addAll(Collection<? extends javax.servlet.Filter> c) |
boolean |
addAll(int index,
Collection<? extends javax.servlet.Filter> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
javax.servlet.Filter |
get(int index) |
String |
getName()
Returns the configuration-unique name assigned to this
Filter list. |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<javax.servlet.Filter> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<javax.servlet.Filter> |
listIterator() |
ListIterator<javax.servlet.Filter> |
listIterator(int index) |
javax.servlet.FilterChain |
proxy(javax.servlet.FilterChain orig)
Returns a new
FilterChain instance that will first execute this list's Filters (in list order)
and end with the execution of the given filterChain instance. |
javax.servlet.Filter |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
javax.servlet.Filter |
set(int index,
javax.servlet.Filter filter) |
protected void |
setName(String name) |
int |
size() |
List<javax.servlet.Filter> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic SimpleNamedFilterList(String name)
SimpleNamedFilterList instance with the specified name, defaulting to a new
ArrayList instance as the backing list.name - the name to assign to this instance.IllegalArgumentException - if name is null or empty.public SimpleNamedFilterList(String name, List<javax.servlet.Filter> backingList)
SimpleNamedFilterList instance with the specified name and backingList.name - the name to assign to this instance.backingList - the list instance used to back all of this class's List method implementations.IllegalArgumentException - if name is null or empty.NullPointerException - if the backing list is null.protected void setName(String name)
public String getName()
NamedFilterListFilter list.getName in interface NamedFilterListFilter list.public javax.servlet.FilterChain proxy(javax.servlet.FilterChain orig)
NamedFilterListFilterChain instance that will first execute this list's Filters (in list order)
and end with the execution of the given filterChain instance.proxy in interface NamedFilterListorig - the FilterChain instance to execute after this list's Filters have executed.FilterChain instance that will first execute this list's Filters (in list order)
and end with the execution of the given filterChain instance.public boolean add(javax.servlet.Filter filter)
add in interface Collection<javax.servlet.Filter>add in interface List<javax.servlet.Filter>public void add(int index,
javax.servlet.Filter filter)
public boolean addAll(Collection<? extends javax.servlet.Filter> c)
addAll in interface Collection<javax.servlet.Filter>addAll in interface List<javax.servlet.Filter>public boolean addAll(int index,
Collection<? extends javax.servlet.Filter> c)
public void clear()
clear in interface Collection<javax.servlet.Filter>clear in interface List<javax.servlet.Filter>public boolean contains(Object o)
contains in interface Collection<javax.servlet.Filter>contains in interface List<javax.servlet.Filter>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<javax.servlet.Filter>containsAll in interface List<javax.servlet.Filter>public javax.servlet.Filter get(int index)
public boolean isEmpty()
isEmpty in interface Collection<javax.servlet.Filter>isEmpty in interface List<javax.servlet.Filter>public Iterator<javax.servlet.Filter> iterator()
public int lastIndexOf(Object o)
lastIndexOf in interface List<javax.servlet.Filter>public ListIterator<javax.servlet.Filter> listIterator()
listIterator in interface List<javax.servlet.Filter>public ListIterator<javax.servlet.Filter> listIterator(int index)
listIterator in interface List<javax.servlet.Filter>public javax.servlet.Filter remove(int index)
public boolean remove(Object o)
remove in interface Collection<javax.servlet.Filter>remove in interface List<javax.servlet.Filter>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<javax.servlet.Filter>removeAll in interface List<javax.servlet.Filter>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<javax.servlet.Filter>retainAll in interface List<javax.servlet.Filter>public javax.servlet.Filter set(int index,
javax.servlet.Filter filter)
public int size()
size in interface Collection<javax.servlet.Filter>size in interface List<javax.servlet.Filter>public List<javax.servlet.Filter> subList(int fromIndex, int toIndex)
public Object[] toArray()
toArray in interface Collection<javax.servlet.Filter>toArray in interface List<javax.servlet.Filter>public <T> T[] toArray(T[] a)
toArray in interface Collection<javax.servlet.Filter>toArray in interface List<javax.servlet.Filter>Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.