public class WaitingRefreshHandler extends Object implements RefreshHandler
ImmediateRefreshHandler
.Constructor and Description |
---|
WaitingRefreshHandler()
Create a WaitingRefreshHandler that will always wait whatever time the server or
content asks.
|
WaitingRefreshHandler(int maxwait)
Create a WaitingRefreshHandler that will wait whatever time the server or
content asks unless it it longer than maxwait.
|
Modifier and Type | Method and Description |
---|---|
void |
handleRefresh(Page page,
URL url,
int requestedWait)
Refreshes the specified page using the specified URL after the specified number
of seconds.
|
public WaitingRefreshHandler(int maxwait)
maxwait
- The maximum wait time before the refresh (in seconds). A value
less than one (1) will cause WaitingRefreshHandler to wait for whatever time the server or content asks.public WaitingRefreshHandler()
public void handleRefresh(Page page, URL url, int requestedWait) throws IOException
handleRefresh
in interface RefreshHandler
page
- The page that is going to be refreshed.url
- The URL where the new page will be loaded.requestedWait
- The number of seconds to wait before reloading the page. If this is
greater than maxwait than maxwait will be used instead.IOException
- if the refresh failsCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.