net.sourceforge.jwebunit.htmlunit
Class ImmediateRefreshHandler

java.lang.Object
  extended by net.sourceforge.jwebunit.htmlunit.ImmediateRefreshHandler
All Implemented Interfaces:
RefreshHandler

public class ImmediateRefreshHandler
extends Object
implements RefreshHandler

Custom Handler until HtmlUnit fix. Cf Bug 1628076


Constructor Summary
ImmediateRefreshHandler()
           
 
Method Summary
 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 Detail

ImmediateRefreshHandler

public ImmediateRefreshHandler()
Method Detail

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


Copyright © 2002-2007 SourceForge. All Rights Reserved.