Package org.htmlunit

# Class ImmediateRefreshHandler

java.lang.Object
org.htmlunit.ImmediateRefreshHandler

All Implemented Interfaces:
  `Serializable`, `RefreshHandler`

Direct Known Subclasses:
  `NiceRefreshHandler`

public class ImmediateRefreshHandler extends Object implements RefreshHandler, 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

  Modifier and Type
  Method
  Description
  `void`
  `handleRefresh(Page page, URL url, int seconds)`
  Immediately refreshes the specified page using the specified URL.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ImmediateRefreshHandler

    public ImmediateRefreshHandler()

- ## Method Details

  - ### handleRefresh

    public void handleRefresh(Page page, URL url, int seconds) throws IOException
    Immediately refreshes the specified page using the specified URL.
    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 (ignored!)
    Throws:
      `IOException` - if the refresh fails