com.gargoylesoftware.htmlunit
Class AjaxController

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.AjaxController
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NicelyResynchronizingAjaxController

public class AjaxController
extends java.lang.Object
implements java.io.Serializable

This class gets notified of AJAX calls and has the possibility to influence them. For instance it can turn asynchron calls synchron to allow a deterministic test and avoid the necessity of waiting. EXPERIMENTAL - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.

Version:
$Revision: 1.3 $
Author:
Marc Guillemot
See Also:
Serialized Form

Constructor Summary
AjaxController()
  
 
Method Summary
 boolean processSynchron(HtmlPage page, WebRequestSettings requestSettings, boolean async)
 Gets notified of an AJAX call to determine how it should be processed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxController

public AjaxController()
Method Detail

processSynchron

public boolean processSynchron(HtmlPage page,
                               WebRequestSettings requestSettings,
                               boolean async)
Gets notified of an AJAX call to determine how it should be processed

Parameters:
page - the page the request comes from
requestSettings - the request that should be performed
async - indicates if the request should originally be asynchron
Returns:
if the call should be synchron or not. Here just like the original call.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.