Class WebsocketValueConverter
- java.lang.Object
-
- org.intocps.maestro.webapi.maestro2.interpreter.WebsocketValueConverter
-
public class WebsocketValueConverter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WebsocketValueConverter(org.springframework.web.socket.WebSocketSession ws)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.List<java.lang.String> names)java.lang.StringgetJson()voidsend()voidupdate(double time, java.util.List<java.lang.Object> updates)Updates the variables to be send.
-
-
-
Method Detail
-
configure
public void configure(java.util.List<java.lang.String> names)
-
update
public void update(double time, java.util.List<java.lang.Object> updates)Updates the variables to be send. It converts dottet string names into objects- Parameters:
time-updates-
-
send
public void send()
-
getJson
public java.lang.String getJson() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-