KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > impl > ExecuteAjaxFilter


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.impl;
17
18 import java.lang.reflect.Method JavaDoc;
19
20 import org.directwebremoting.AjaxFilter;
21 import org.directwebremoting.AjaxFilterChain;
22
23 /**
24  * The last element in a filter chain actually executes the method.
25  * @author Joe Walker [joe at getahead dot ltd dot uk]
26  */

27 public class ExecuteAjaxFilter implements AjaxFilter
28 {
29     /* (non-Javadoc)
30      * @see org.directwebremoting.AjaxFilter#doFilter(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], org.directwebremoting.AjaxFilterChain)
31      */

32     public Object JavaDoc doFilter(Object JavaDoc obj, Method JavaDoc method, Object JavaDoc[] params, AjaxFilterChain chain) throws Exception JavaDoc
33     {
34         return method.invoke(obj, params);
35     }
36 }
37
Popular Tags