| java.lang.Object com.gargoylesoftware.htmlunit.AjaxController com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController
NicelyResynchronizingAjaxController | public class NicelyResynchronizingAjaxController extends AjaxController (Code) | | This
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.
version: $Revision: 1165 $ author: Marc Guillemot |
NicelyResynchronizingAjaxController | public NicelyResynchronizingAjaxController()(Code) | | Create an instance.
|
getLog | final protected Log getLog()(Code) | | Return the log
The log. |
isInOriginalThread | boolean isInOriginalThread()(Code) | | Indicates if currently executing thread is the one in which this instance has been
created
true if it's the same thread |
processSynchron | public boolean processSynchron(HtmlPage page, WebRequestSettings requestSettings, boolean async)(Code) | | Resynchronizes calls performed from the thread where this instance has
been created.
|
|
|