01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
17:
18: import java.lang.reflect.Method;
19:
20: /**
21: * An AjaxFilterChain is provided by DWR to an AjaxFilter to allow it to pass
22: * the request on for invocation.
23: * @see org.directwebremoting.AjaxFilter
24: * @since DWR 2.0
25: * @author Joe Walker [joe at getahead dot ltd dot uk]
26: */
27: public interface AjaxFilterChain {
28: /**
29: * Causes the next filter in the chain to be invoked, or if the calling
30: * filter is the last filter in the chain, causes the resource at the end of
31: * the chain to be invoked.
32: * @param obj The object to execute the method on (i.e. 'this')
33: * @param method The method to execute
34: * @param params The parameters to the method call
35: * @return The results of the method execution
36: * @throws Exception When some processing goes wrong
37: * @since DWR 2.0
38: */
39: public Object doFilter(Object obj, Method method, Object[] params)
40: throws Exception;
41: }
|