com.vaadin.base.devserver.
Class BrowserLiveReloadImpl
- java.lang.Object
 - 
- com.vaadin.base.devserver.BrowserLiveReloadImpl
 
 
- 
All Implemented Interfaces:
public class BrowserLiveReloadImpl extends Object implements BrowserLiveReloadBrowserLiveReloadimplementation class.For internal use only. May be renamed or removed in a future release.
Author:
Vaadin Ltd
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.vaadin.flow.internal.BrowserLiveReload
BrowserLiveReload.Backend 
 - 
 
- 
Method Summary
All Methods Modifier and Type Method and Description BrowserLiveReload.BackendgetBackend()Detects and return enabling live reload backend technology.
booleanisLiveReload(org.atmosphere.cpr.AtmosphereResource resource)Returns whether the passed connection is a browser live-reload connection.
voidonConnect(org.atmosphere.cpr.AtmosphereResource resource)Sets the web socket connection resource when it's established.
voidonDisconnect(org.atmosphere.cpr.AtmosphereResource resource)Removes the web socket connection resource, not
null.voidreload()Requests reload via the resource provided via
BrowserLiveReload.onConnect(AtmosphereResource)call.voidsetBackend(BrowserLiveReload.Backend backend)Sets the live reload backend technology explicitly.
 
 - 
 
- 
- 
Method Detail
- 
getBackend
public BrowserLiveReload.Backend getBackend()Description copied from interface:
BrowserLiveReloadDetects and return enabling live reload backend technology.
Specified by:
getBackendin interfaceBrowserLiveReloadReturns:
enabling technology, or
nullif none 
- 
setBackend
public void setBackend(BrowserLiveReload.Backend backend)Description copied from interface:
BrowserLiveReloadSets the live reload backend technology explicitly.
Specified by:
setBackendin interfaceBrowserLiveReloadParameters:
backend- enabling technology, notnull. 
- 
onConnect
public void onConnect(org.atmosphere.cpr.AtmosphereResource resource)Description copied from interface:
BrowserLiveReloadSets the web socket connection resource when it's established.
Specified by:
onConnectin interfaceBrowserLiveReloadParameters:
resource- a web socket connection resource, notnull. 
- 
onDisconnect
public void onDisconnect(org.atmosphere.cpr.AtmosphereResource resource)Description copied from interface:
BrowserLiveReloadRemoves the web socket connection resource, not
null.Specified by:
onDisconnectin interfaceBrowserLiveReloadParameters:
resource- a web socket connection resource 
- 
isLiveReload
public boolean isLiveReload(org.atmosphere.cpr.AtmosphereResource resource)Description copied from interface:
BrowserLiveReloadReturns whether the passed connection is a browser live-reload connection.
Specified by:
isLiveReloadin interfaceBrowserLiveReloadParameters:
resource- a web socket connection resource, notnull.Returns:
whether the web socket connection is for live reload
 
- 
reload
public void reload()Description copied from interface:
BrowserLiveReloadRequests reload via the resource provided via
BrowserLiveReload.onConnect(AtmosphereResource)call.Specified by:
reloadin interfaceBrowserLiveReload 
 - 
 
 -