Package org.htmlunit

Interface RefreshHandler

All Known Implementing Classes:
ImmediateRefreshHandler, NiceRefreshHandler, ThreadedRefreshHandler, WaitingRefreshHandler

public interface RefreshHandler
A handler for page refreshes. A refresh can be triggered by a response header or a meta tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleRefresh(Page page, URL url, int seconds)
    Refreshes the specified page using the specified URL after the specified number of seconds.
  • Method Details

    • handleRefresh

      void handleRefresh(Page page, URL url, int seconds) throws IOException
      Refreshes the specified page using the specified URL after the specified number of seconds.
      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
      Throws:
      IOException - if the refresh fails