public class NicelyResynchronizingAjaxController extends AjaxController
AjaxControllerresynchronizes 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|
Creates an instance.
|Modifier and Type||Method and Description|
Resynchronizes calls performed from the thread where this instance has been created.
public boolean processSynchron(HtmlPage page, WebRequest settings, boolean async)
page- the page the request comes from
settings- the request that should be performed
async- indicates if the request should originally be asynchronous
Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.