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
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
factory, filterChainContextPool, interestedIoEventsMask
 
Constructor Summary
ListFacadeFilterChain(FilterChainFactory factory, 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 recalculateFilterIndexes(int startPosition)
           
 Filter remove(int index)
          
 boolean remove(Object object)
          
 boolean removeAll(Collection<?> c)
          
 boolean retainAll(Collection<?> c)
          
 Filter set(int index, Filter filter)
          
 int size()
          
 List<Filter> subList(int fromIndex, int toIndex)
          
 Object[] toArray()
          
<T> T[]
toArray(T[] a)
          
 
Methods inherited from class org.glassfish.grizzly.filterchain.AbstractFilterChain
afterProcess, beforeProcess, context, execute, getFactory, isInterested, process, setInterested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.grizzly.filterchain.FilterChain
getCodec
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

filters

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

Constructor Detail

ListFacadeFilterChain

public ListFacadeFilterChain(FilterChainFactory factory,
                             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 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)


subList

public List<Filter> subList(int fromIndex,
                            int toIndex)


recalculateFilterIndexes

protected void recalculateFilterIndexes(int startPosition)


Copyright © 2009 SUN Microsystems. All Rights Reserved.