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; 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 /** 30 * Causes the next filter in the chain to be invoked, or if the calling 31 * filter is the last filter in the chain, causes the resource at the end of 32 * the chain to be invoked. 33 * @param obj The object to execute the method on (i.e. 'this') 34 * @param method The method to execute 35 * @param params The parameters to the method call 36 * @return The results of the method execution 37 * @throws Exception When some processing goes wrong 38 * @since DWR 2.0 39 */ 40 public Object doFilter(Object obj, Method method, Object[] params) throws Exception; 41 } 42