| org.directwebremoting.AjaxFilter
All known Subclasses: org.getahead.dwrdemo.filter.LoggingAjaxFilter, org.directwebremoting.hibernate.H3SessionAjaxFilter, org.getahead.dwrdemo.filter.RandomSecurityAjaxFilter, org.directwebremoting.filter.ExtraLatencyAjaxFilter, org.directwebremoting.impl.ExecuteAjaxFilter, org.getahead.dwrdemo.filter.AuthenticationAjaxFilter, org.directwebremoting.guice.InternalAjaxFilter,
AjaxFilter | public interface AjaxFilter (Code) | | A filter is a way to insert procesing tasks at various points during the
processing of an Ajax call.
Example filters:
- Authentication
- Latency simulators
- Data cleansing - remove private data
- Logging filters - when you need specific logging action
since: DWR 2.0 author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
public Object | doFilter(Object obj, Method method, Object[] params, AjaxFilterChain chain) The doFilter method of the AjaxFilter is called by DWR each
time an Ajax request is made on a method that this filter is configured
against. |
doFilter | public Object doFilter(Object obj, Method method, Object[] params, AjaxFilterChain chain) throws Exception(Code) | | The doFilter method of the AjaxFilter is called by DWR each
time an Ajax request is made on a method that this filter is configured
against. The AjaxFilterChain passed in to this method allows
the filter to pass on method details to next entity in the chain.
Typically the method would do the following:
- Examine the request
- Optionally alter the method, object or parameters
- Either invoke the next entity in the chain using the AjaxFilterChain
or decide to take some other action instead.
- Optionally modify the value returned to the user
- Take some other action (e.g. logging)
Parameters: obj - The object to execute the method on (i.e. 'this') Parameters: method - The method to execute Parameters: params - The parameters to the method call Parameters: chain - Allow the request to be passed on The results of the method execution throws: IOException - When some I/O error occurs throws: Exception - When some processing goes wrong |
|
|