Class 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
      void configure​(java.util.List<java.lang.String> names)  
      java.lang.String getJson()  
      void send()  
      void update​(double time, java.util.List<java.lang.Object> updates)
      Updates the variables to be send.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebsocketValueConverter

        public WebsocketValueConverter​(org.springframework.web.socket.WebSocketSession ws)
    • 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