public interface AutoReloadService
broadcastPageReload()
is called.Modifier and Type | Method and Description |
---|---|
void |
broadcastPageReload()
Reloads the current page in all connected browsers.
|
String |
getJavaScript(String contextPath) |
boolean |
isEnabled() |
void |
setEnabled(boolean isEnabled)
Enables or disabled auto-reload.
|
boolean isEnabled()
void setEnabled(boolean isEnabled)
isEnabled
- true when auto-reload should be enabled, false when it should be disabled.String getJavaScript(String contextPath)
contextPath
- the current context path of the page in which the JavaScript will be included. The context
path can be an empty string when the page is served at URL path '/' (e.g. when the web
application is deployed as ROOT.war). When the context path is not empty, it must start with
a slash, followed by the context path string. The context path must not end with a slash.
For example, valid context paths are "/site", "/intranet" and "".IllegalArgumentException
- if the context path is not well-formed.void broadcastPageReload()
Copyright © 2012–2015 Hippo B.V. (http://www.onehippo.com). All rights reserved.