KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > extend > AjaxFilterManager


1 /*
2  * Copyright 2005 Joe Walker
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.directwebremoting.extend;
17
18 import java.util.Iterator JavaDoc;
19
20 import org.directwebremoting.AjaxFilter;
21
22 /**
23  * A class that manages the various <code>AjaxFilter</code>s and what classes
24  * they are registered against.
25  * @author Joe Walker [joe at getahead dot ltd dot uk]
26  */

27 public interface AjaxFilterManager
28 {
29     /**
30      * Retrieve the global and class-based AjaxFilters for a given class.
31      * @param scriptname The scriptname to use to filter the class-based filters
32      * @return An iterator over the available filters.
33      */

34     Iterator JavaDoc getAjaxFilters(String JavaDoc scriptname);
35
36     /**
37      * Add a global AjaxFilter
38      * @param filter The new global AjaxFilter
39      */

40     void addAjaxFilter(AjaxFilter filter);
41
42     /**
43      * Add a class based AjaxFilter
44      * @param filter The new AjaxFilter
45      * @param scriptname The scriptname to filter against
46      */

47     void addAjaxFilter(AjaxFilter filter, String JavaDoc scriptname);
48 }
49
Popular Tags