Class SimpleNamedFilterList

  • All Implemented Interfaces:
    Iterable<javax.servlet.Filter>, Collection<javax.servlet.Filter>, List<javax.servlet.Filter>, NamedFilterList

    public class SimpleNamedFilterList
    extends Object
    implements 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 Detail

      • SimpleNamedFilterList

        public SimpleNamedFilterList​(String name)
        Creates a new SimpleNamedFilterList instance with the specified name, defaulting to a new ArrayList instance as the backing list.
        Parameters:
        name - the name to assign to this instance.
        Throws:
        IllegalArgumentException - if name is null or empty.
      • SimpleNamedFilterList

        public SimpleNamedFilterList​(String name,
                                     List<javax.servlet.Filter> backingList)
        Creates a new SimpleNamedFilterList instance with the specified name and backingList.
        Parameters:
        name - the name to assign to this instance.
        backingList - the list instance used to back all of this class's List method implementations.
        Throws:
        IllegalArgumentException - if name is null or empty.
        NullPointerException - if the backing list is null.
    • Method Detail

      • setName

        protected void setName​(String name)
      • getName

        public String getName()
        Description copied from interface: NamedFilterList
        Returns the configuration-unique name assigned to this Filter list.
        Specified by:
        getName in interface NamedFilterList
        Returns:
        the configuration-unique name assigned to this Filter list.
      • proxy

        public javax.servlet.FilterChain proxy​(javax.servlet.FilterChain orig)
        Description copied from interface: NamedFilterList
        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.
        Specified by:
        proxy in interface NamedFilterList
        Parameters:
        orig - the FilterChain instance to execute after this list's Filters have executed.
        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.
      • add

        public boolean add​(javax.servlet.Filter filter)
        Specified by:
        add in interface Collection<javax.servlet.Filter>
        Specified by:
        add in interface List<javax.servlet.Filter>
      • add

        public void add​(int index,
                        javax.servlet.Filter filter)
        Specified by:
        add in interface List<javax.servlet.Filter>
      • addAll

        public boolean addAll​(Collection<? extends javax.servlet.Filter> c)
        Specified by:
        addAll in interface Collection<javax.servlet.Filter>
        Specified by:
        addAll in interface List<javax.servlet.Filter>
      • addAll

        public boolean addAll​(int index,
                              Collection<? extends javax.servlet.Filter> c)
        Specified by:
        addAll in interface List<javax.servlet.Filter>
      • clear

        public void clear()
        Specified by:
        clear in interface Collection<javax.servlet.Filter>
        Specified by:
        clear in interface List<javax.servlet.Filter>
      • contains

        public boolean contains​(Object o)
        Specified by:
        contains in interface Collection<javax.servlet.Filter>
        Specified by:
        contains in interface List<javax.servlet.Filter>
      • get

        public javax.servlet.Filter get​(int index)
        Specified by:
        get in interface List<javax.servlet.Filter>
      • indexOf

        public int indexOf​(Object o)
        Specified by:
        indexOf in interface List<javax.servlet.Filter>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Collection<javax.servlet.Filter>
        Specified by:
        isEmpty in interface List<javax.servlet.Filter>
      • lastIndexOf

        public int lastIndexOf​(Object o)
        Specified by:
        lastIndexOf in interface List<javax.servlet.Filter>
      • listIterator

        public ListIterator<javax.servlet.Filter> listIterator()
        Specified by:
        listIterator in interface List<javax.servlet.Filter>
      • listIterator

        public ListIterator<javax.servlet.Filter> listIterator​(int index)
        Specified by:
        listIterator in interface List<javax.servlet.Filter>
      • remove

        public javax.servlet.Filter remove​(int index)
        Specified by:
        remove in interface List<javax.servlet.Filter>
      • remove

        public boolean remove​(Object o)
        Specified by:
        remove in interface Collection<javax.servlet.Filter>
        Specified by:
        remove in interface List<javax.servlet.Filter>
      • set

        public javax.servlet.Filter set​(int index,
                                        javax.servlet.Filter filter)
        Specified by:
        set in interface List<javax.servlet.Filter>
      • size

        public int size()
        Specified by:
        size in interface Collection<javax.servlet.Filter>
        Specified by:
        size in interface List<javax.servlet.Filter>
      • subList

        public List<javax.servlet.Filter> subList​(int fromIndex,
                                                  int toIndex)
        Specified by:
        subList in interface List<javax.servlet.Filter>
      • toArray

        public Object[] toArray()
        Specified by:
        toArray in interface Collection<javax.servlet.Filter>
        Specified by:
        toArray in interface List<javax.servlet.Filter>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface Collection<javax.servlet.Filter>
        Specified by:
        toArray in interface List<javax.servlet.Filter>