Class ChatDecoder

  • All Implemented Interfaces:
    jakarta.websocket.Decoder, jakarta.websocket.Decoder.Text<ChatMessage>

    public class ChatDecoder
    extends java.lang.Object
    implements jakarta.websocket.Decoder.Text<ChatMessage>
    Author:
    Stepan Kopriva
    • Nested Class Summary

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

        jakarta.websocket.Decoder.Binary<T extends java.lang.Object>, jakarta.websocket.Decoder.BinaryStream<T extends java.lang.Object>, jakarta.websocket.Decoder.Text<T extends java.lang.Object>, jakarta.websocket.Decoder.TextStream<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatDecoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChatMessage decode​(java.lang.String s)  
      void destroy()  
      void init​(jakarta.websocket.EndpointConfig config)  
      boolean willDecode​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

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

      • ChatDecoder

        public ChatDecoder()
    • Method Detail

      • decode

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

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

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

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