com.gargoylesoftware.htmlunit
Class ThreadedRefreshHandler

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.ThreadedRefreshHandler
All Implemented Interfaces:
RefreshHandler

public class ThreadedRefreshHandler
extends java.lang.Object
implements RefreshHandler

This refresh handler spawns a new thread that waits the specified number of seconds before refreshing the specified page, using the specified URL. If you want a refresh handler that ignores the wait time, see ImmediateRefreshHandler.

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Daniel Gredler

Constructor Summary
ThreadedRefreshHandler()
  
 
Method Summary
 void handleRefresh(Page page, java.net.URL url, int seconds)
 Refreshes the specified page using the specified URL after the specified number of seconds.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadedRefreshHandler

public ThreadedRefreshHandler()
Method Detail

handleRefresh

public void handleRefresh(Page page,
                          java.net.URL url,
                          int seconds)
Refreshes the specified page using the specified URL after the specified number of seconds.

Specified by:
handleRefresh in interface RefreshHandler
Parameters:
page - The page that is going to be refreshed.
url - The URL where the new page will be loaded.
seconds - The number of seconds to wait before reloading the page.


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