public class NiceRefreshHandler extends ImmediateRefreshHandler
| Constructor and Description |
|---|
NiceRefreshHandler(int maxDelay)
Creates a new refresh handler that will immediately refresh if the refresh delay is no
longer than
maxDelay. |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRefresh(Page page,
URL url,
int requestedWait)
Refreshes the specified page using the specified URL immediately if the
requestedWait
is not larger than the maxDelay. |
public NiceRefreshHandler(int maxDelay)
maxDelay. No refresh will be perform at all for refresh values
larger than maxDelay.maxDelay - the maximum refreshValue (in seconds) that should cause a refreshpublic void handleRefresh(Page page, URL url, int requestedWait) throws IOException
requestedWait
is not larger than the maxDelay. Does nothing otherwise.handleRefresh in interface RefreshHandlerhandleRefresh in class ImmediateRefreshHandlerpage - the page that is going to be refreshedurl - the URL where the new page will be loadedrequestedWait - the number of seconds to wait before reloading the pageIOException - if the refresh failsCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.