1 16 package org.getahead.dwrdemo.filter; 17 18 import java.lang.reflect.Method ; 19 20 import org.directwebremoting.AjaxFilter; 21 import org.directwebremoting.AjaxFilterChain; 22 import org.directwebremoting.util.Logger; 23 24 25 29 public class LoggingAjaxFilter implements AjaxFilter 30 { 31 34 public Object doFilter(Object obj, Method method, Object [] params, AjaxFilterChain chain) throws Exception 35 { 36 log.debug("About to execute: " + method.getName() + "() on " + obj); 37 Object reply = chain.doFilter(obj, method, params); 38 log.debug("Executed: " + method.getName() + "() giving " + reply); 39 return reply; 40 } 41 42 45 private static final Logger log = Logger.getLogger(LoggingAjaxFilter.class); 46 } 47 | Popular Tags |