org.glassfish.grizzly.filterchain
Class ListFacadeFilterChain

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.AbstractFilterChain
      extended by org.glassfish.grizzly.filterchain.ListFacadeFilterChain
All Implemented Interfaces:
Iterable<Filter>, Collection<Filter>, List<Filter>, FilterChain, Processor<Context>
Direct Known Subclasses:
DefaultFilterChain

public abstract class ListFacadeFilterChain
extends AbstractFilterChain

FilterChain facade, which implements all the List related methods.

Author:
Alexey Stashok
See Also:
FilterChain

Field Summary
protected  List<Filter> filters
          The list of Filters this chain will invoke.
 
Fields inherited from class org.glassfish.grizzly.filterchain.AbstractFilterChain
interestedIoEventsMask
 
Constructor Summary
ListFacadeFilterChain(List<Filter> filtersImpl)
           
 
Method Summary
 boolean add(Filter filter)
          
 void add(int index, Filter filter)
          
 boolean addAll(Collection<? extends Filter> c)
          
 boolean addAll(int index, Collection<? extends Filter> c)
          
 void clear()
          
 boolean contains(Object filter)
          
 boolean containsAll(Collection<?> c)
          
 Filter get(int index)
          
 int indexOf(Object object)
          
 boolean isEmpty()
          
 Iterator<Filter> iterator()
          
 int lastIndexOf(Object filter)
          
 ListIterator<Filter> listIterator()
          
 ListIterator<Filter> listIterator(int index)
          
protected  void notifyChangedExcept(Filter filter)
           
 Filter remove(int index)
          
 boolean remove(Object object)
          
 boolean removeAll(Collection<?> c)
          
 boolean retainAll(Collection<?> c)
          
 Filter set(int index, Filter filter)
          
 int size()
          
 Object[] toArray()
          
<T> T[]
toArray(T[] a)
          
 
Methods inherited from class org.glassfish.grizzly.filterchain.AbstractFilterChain
finalize, indexOfType, isInterested, obtainContext, obtainFilterChainContext, setInterested
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.filterchain.FilterChain
execute, fail, fireEventDownstream, fireEventUpstream, flush, read
 
Methods inherited from interface org.glassfish.grizzly.Processor
process, read, write
 
Methods inherited from interface java.util.List
equals, hashCode, subList
 

Field Detail

filters

protected final List<Filter> filters
The list of Filters this chain will invoke.

Constructor Detail

ListFacadeFilterChain

public ListFacadeFilterChain(List<Filter> filtersImpl)
Method Detail

add

public boolean add(Filter filter)


add

public void add(int index,
                Filter filter)


addAll

public boolean addAll(Collection<? extends Filter> c)


addAll

public boolean addAll(int index,
                      Collection<? extends Filter> c)


set

public Filter set(int index,
                  Filter filter)


get

public final Filter get(int index)


indexOf

public int indexOf(Object object)


lastIndexOf

public int lastIndexOf(Object filter)


contains

public boolean contains(Object filter)


containsAll

public boolean containsAll(Collection<?> c)


toArray

public Object[] toArray()


toArray

public <T> T[] toArray(T[] a)


retainAll

public boolean retainAll(Collection<?> c)


remove

public boolean remove(Object object)


remove

public Filter remove(int index)


removeAll

public boolean removeAll(Collection<?> c)


isEmpty

public boolean isEmpty()


size

public int size()


clear

public void clear()


iterator

public Iterator<Filter> iterator()


listIterator

public ListIterator<Filter> listIterator()


listIterator

public ListIterator<Filter> listIterator(int index)


notifyChangedExcept

protected void notifyChangedExcept(Filter filter)


Copyright © 2013 Oracle Corporation. All Rights Reserved.