Package org.htmlunit
Class ThreadedRefreshHandler
- java.lang.Object
-
- org.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
.
-
-
Constructor Summary
Constructors Constructor Description ThreadedRefreshHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRefresh(Page page, java.net.URL url, int seconds)
Refreshes the specified page using the specified URL after the specified number of seconds.
-
-
-
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 interfaceRefreshHandler
- Parameters:
page
- the page that is going to be refreshedurl
- the URL where the new page will be loadedseconds
- the number of seconds to wait before reloading the page
-
-