public class NicelyResynchronizingAjaxController extends AjaxController
AjaxController
resynchronizes calls calling from the main thread.
The idea is that asynchronous 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 synchronously.Constructor and Description |
---|
NicelyResynchronizingAjaxController()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processSynchron(HtmlPage page,
WebRequest settings,
boolean async)
Resynchronizes calls performed from the thread where this instance has been created.
|
public NicelyResynchronizingAjaxController()
public boolean processSynchron(HtmlPage page, WebRequest settings, boolean async)
Gets notified of an AJAX call to determine how it should be processed.
processSynchron
in class AjaxController
page
- the page the request comes fromsettings
- the request that should be performedasync
- indicates if the request should originally be asynchronousCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.