Class MessageSerializer.MessageDecoder

java.lang.Object
de.ovgu.spldev.varied.messaging.MessageSerializer.MessageDecoder
All Implemented Interfaces:
jakarta.websocket.Decoder, jakarta.websocket.Decoder.Text<Message>
Enclosing class:
MessageSerializer

public static class MessageSerializer.MessageDecoder extends Object implements jakarta.websocket.Decoder.Text<Message>
decodes message objects from JSON (respecting the polymorphic class hierarchy)
  • Nested Class Summary

    Nested classes/interfaces inherited from interface jakarta.websocket.Decoder

    jakarta.websocket.Decoder.Binary<T>, jakarta.websocket.Decoder.BinaryStream<T>, jakarta.websocket.Decoder.Text<T>, jakarta.websocket.Decoder.TextStream<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    init(jakarta.websocket.EndpointConfig endpointConfig)
     
    boolean
     

    Methods inherited from class java.lang.Object

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

    • MessageDecoder

      public MessageDecoder()
  • Method Details

    • decode

      public Message decode(String s)
      Specified by:
      decode in interface jakarta.websocket.Decoder.Text<Message>
    • willDecode

      public boolean willDecode(String s)
      Specified by:
      willDecode in interface jakarta.websocket.Decoder.Text<Message>
    • init

      public void init(jakarta.websocket.EndpointConfig endpointConfig)
      Specified by:
      init in interface jakarta.websocket.Decoder
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.websocket.Decoder