Class ChatDecoder

java.lang.Object
org.glassfish.tyrus.sample.chat.chatdata.ChatDecoder
All Implemented Interfaces:
jakarta.websocket.Decoder, jakarta.websocket.Decoder.Text<ChatMessage>

public class ChatDecoder extends 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>, 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 config)
     
    boolean
     

    Methods inherited from class java.lang.Object

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

    • ChatDecoder

      public ChatDecoder()
  • Method Details

    • decode

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

      public boolean willDecode(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