Package org.htmlunit
Class ImmediateRefreshHandler
- java.lang.Object
-
- org.htmlunit.ImmediateRefreshHandler
-
- All Implemented Interfaces:
java.io.Serializable,RefreshHandler
- Direct Known Subclasses:
NiceRefreshHandler
public class ImmediateRefreshHandler extends java.lang.Object implements RefreshHandler, java.io.Serializable
This refresh handler immediately refreshes the specified page, using the specified URL and ignoring the wait time.If you want a refresh handler that does not ignore the wait time, see
ThreadedRefreshHandler.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmediateRefreshHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRefresh(Page page, java.net.URL url, int seconds)Immediately refreshes the specified page using the specified URL.
-
-
-
Method Detail
-
handleRefresh
public void handleRefresh(Page page, java.net.URL url, int seconds) throws java.io.IOException
Immediately refreshes the specified page using the specified URL.- Specified by:
handleRefreshin 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 (ignored!)- Throws:
java.io.IOException- if the refresh fails
-
-