org.directwebremoting.impl
Class DefaultAjaxFilterManager

java.lang.Object
  extended by org.directwebremoting.impl.DefaultAjaxFilterManager
All Implemented Interfaces:
AjaxFilterManager

public class DefaultAjaxFilterManager
extends java.lang.Object
implements AjaxFilterManager

The default implementation of AjaxFilterManager

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultAjaxFilterManager()
           
 
Method Summary
 void addAjaxFilter(AjaxFilter filter)
          Add a global AjaxFilter
 void addAjaxFilter(AjaxFilter filter, java.lang.String scriptName)
          Add a class based AjaxFilter
 java.util.List<AjaxFilter> getAjaxFilters(java.lang.String scriptName)
          Retrieve the global and class-based AjaxFilters for a given class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAjaxFilterManager

public DefaultAjaxFilterManager()
Method Detail

getAjaxFilters

public java.util.List<AjaxFilter> getAjaxFilters(java.lang.String scriptName)
Description copied from interface: AjaxFilterManager
Retrieve the global and class-based AjaxFilters for a given class. In versions prior to 3.0 this method returned an Iterator AND which included an ExecuteAjaxFilter (in last place). In version 3 this method should return an unmodifiable list which does not contain any execute functionality.

Specified by:
getAjaxFilters in interface AjaxFilterManager
Parameters:
scriptName - The script name to use to filter the class-based filters
Returns:
An iterator over the available filters.

addAjaxFilter

public void addAjaxFilter(AjaxFilter filter)
Description copied from interface: AjaxFilterManager
Add a global AjaxFilter

Specified by:
addAjaxFilter in interface AjaxFilterManager
Parameters:
filter - The new global AjaxFilter

addAjaxFilter

public void addAjaxFilter(AjaxFilter filter,
                          java.lang.String scriptName)
Description copied from interface: AjaxFilterManager
Add a class based AjaxFilter

Specified by:
addAjaxFilter in interface AjaxFilterManager
Parameters:
filter - The new AjaxFilter
scriptName - The script name to filter against

Copyright 2008