|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.filter.ActionTimeoutAjaxFilter
public class ActionTimeoutAjaxFilter
ScriptSessions are timed out based on total user activity, which
includes reverse ajax calls. You may wish to timeout a ScriptSession while
the user is still on the page if they have no taken any actions in the last
'n' seconds.
| Constructor Summary | |
|---|---|
ActionTimeoutAjaxFilter()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
doFilter(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.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. |
void |
setActionTimeoutMillis(long actionTimeoutMillis)
The time after which we detect out of date ScriptSessions, and time them out. |
void |
setOnTimeout(java.lang.String onTimeout)
What do we ask the browser to do when the timeout happens? |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionTimeoutAjaxFilter()
| Method Detail |
|---|
public java.lang.Object doFilter(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] params,
AjaxFilterChain chain)
throws java.lang.Exception
AjaxFilterdoFilter 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)
- Specified by:
doFilter in interface AjaxFilter
- Parameters:
obj - The object to execute the method on (i.e. 'this')method - The method to executeparams - The parameters to the method callchain - Allow the request to be passed on
- Returns:
- The results of the method execution
- Throws:
java.io.IOException - When some I/O error occurs
java.lang.Exception - When some processing goes wrong
public void setActionTimeoutMillis(long actionTimeoutMillis)
public void setOnTimeout(java.lang.String onTimeout)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||