|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.AjaxController
com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController
public class NicelyResynchronizingAjaxController
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.
| Constructor Summary | |
|---|---|
NicelyResynchronizingAjaxController()
Create an instance. |
|
| Method Summary | |
|---|---|
protected 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NicelyResynchronizingAjaxController()
| Method Detail |
|---|
protected final Log getLog()
public boolean processSynchron(HtmlPage page,
WebRequestSettings requestSettings,
boolean async)
processSynchron in class AjaxControllerpage - the page the request comes fromrequestSettings - the request that should be performedasync - indicates if the request should originally be asynchron
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||