JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit

Class AjaxController

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    NicelyResynchronizingAjaxController


    public class AjaxController
    extends Object
    implements Serializable 
    This class is notified when AJAX calls are made, and has the ability to influence these calls. For instance, it can turn asynchronous AJAX calls into synchronous AJAX calls, making test code deterministic and avoiding calls to Thread.sleep().
    Author:
    Marc Guillemot
    See Also:
    Serialized Form
    • Constructor Detail

      • AjaxController

        public AjaxController()
    • Method Detail

      • processSynchron

        public boolean processSynchron(HtmlPage page,
         WebRequest request,
         boolean async)
        Gets notified of an AJAX call to determine how it should be processed.
        Parameters:
        page - the page the request comes from
        request - the request that should be performed
        async - indicates if the request should originally be asynchronous
        Returns:
        if the call should be synchronous or not; here just like the original call
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /