WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Server Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

Intercepting page loads with WebRenderer

 

 

 

Intercepting Page loads

Intercepting page loads is particularly useful to dynamically block specific destinations from loading. The blockLoad() method must be called within the onLoadIntercept event, due to the WebRenderer message queue and page loading schedule.

browser.addBrowserListener(new BrowserAdapter(){
      public void onLoadIntercept(BrowserEvent e) {
             if(e.getURL().toLowerCase().indexOf("google.com") != -1) {
                  e.blockLoad();
                  System.out.println("Intercepted and blocked loading of page: "+e.getURL());
             }
      }
});

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer