public class NicelyResynchronizingAjaxController extends AjaxController
AjaxController
resynchronizes calls calling from the main thread.
The idea is that asynchron AJAX calls performed directly in response to a user
action (therefore in the "main" thread and not in the thread of a background task)
are directly useful for the user. To easily have a testable state, these calls
are performed synchron.
EXPERIMENTAL - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.Constructor and Description |
---|
NicelyResynchronizingAjaxController()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.logging.Log |
getLog()
Return the log
|
boolean |
processSynchron(HtmlPage page,
WebRequestSettings requestSettings,
boolean async)
Resynchronizes calls performed from the thread where this instance has
been created.
|
public NicelyResynchronizingAjaxController()
protected final org.apache.commons.logging.Log getLog()
public boolean processSynchron(HtmlPage page, WebRequestSettings requestSettings, boolean async)
processSynchron
in class AjaxController
page
- the page the request comes fromrequestSettings
- the request that should be performedasync
- indicates if the request should originally be asynchronCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.