com.vaadin.flow.internal.
Class DebugWindowConnection
- java.lang.Object
-
- com.vaadin.flow.internal.DebugWindowConnection
-
All Implemented Interfaces:
public class DebugWindowConnection extends Object implements BrowserLiveReload
BrowserLiveReload
implementation 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.Backend
getBackend()
Detects and return enabling live reload backend technology.
boolean
isLiveReload(org.atmosphere.cpr.AtmosphereResource resource)
Returns whether the passed connection is a browser live-reload connection.
void
onConnect(org.atmosphere.cpr.AtmosphereResource resource)
Sets the web socket connection resource when it's established.
void
onDisconnect(org.atmosphere.cpr.AtmosphereResource resource)
Removes the web socket connection resource, not
null
.void
onMessage(org.atmosphere.cpr.AtmosphereResource resource, String message)
Called when any message is received through the connection.
void
reload()
Requests reload via the resource provided via
BrowserLiveReload.onConnect(AtmosphereResource)
call.void
setBackend(BrowserLiveReload.Backend backend)
Sets the live reload backend technology explicitly.
-
-
-
Method Detail
-
getBackend
public BrowserLiveReload.Backend getBackend()
Description copied from interface:
BrowserLiveReload
Detects and return enabling live reload backend technology.
Specified by:
getBackend
in interfaceBrowserLiveReload
Returns:
enabling technology, or
null
if none
-
setBackend
public void setBackend(BrowserLiveReload.Backend backend)
Description copied from interface:
BrowserLiveReload
Sets the live reload backend technology explicitly.
Specified by:
setBackend
in interfaceBrowserLiveReload
Parameters:
backend
- enabling technology, notnull
.
-
onConnect
public void onConnect(org.atmosphere.cpr.AtmosphereResource resource)
Description copied from interface:
BrowserLiveReload
Sets the web socket connection resource when it's established.
Specified by:
onConnect
in interfaceBrowserLiveReload
Parameters:
resource
- a web socket connection resource, notnull
.
-
onDisconnect
public void onDisconnect(org.atmosphere.cpr.AtmosphereResource resource)
Description copied from interface:
BrowserLiveReload
Removes the web socket connection resource, not
null
.Specified by:
onDisconnect
in interfaceBrowserLiveReload
Parameters:
resource
- a web socket connection resource
-
isLiveReload
public boolean isLiveReload(org.atmosphere.cpr.AtmosphereResource resource)
Description copied from interface:
BrowserLiveReload
Returns whether the passed connection is a browser live-reload connection.
Specified by:
isLiveReload
in interfaceBrowserLiveReload
Parameters:
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:
BrowserLiveReload
Requests reload via the resource provided via
BrowserLiveReload.onConnect(AtmosphereResource)
call.Specified by:
reload
in interfaceBrowserLiveReload
-
onMessage
public void onMessage(org.atmosphere.cpr.AtmosphereResource resource, String message)
Description copied from interface:
BrowserLiveReload
Called when any message is received through the connection.
Specified by:
onMessage
in interfaceBrowserLiveReload
Parameters:
resource
- the atmosphere resource that received the messagemessage
- the received message
-
-