Class MessageDecoder

java.lang.Object
com.jbstrap.core.websocket.MessageDecoder
All Implemented Interfaces:
javax.websocket.Decoder, javax.websocket.Decoder.Text<BaseEvent>

public class MessageDecoder extends Object implements javax.websocket.Decoder.Text<BaseEvent>
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • MessageDecoder

      public MessageDecoder()
  • Method Details

    • decode

      public BaseEvent decode(String msg) throws javax.websocket.DecodeException
      Specified by:
      decode in interface javax.websocket.Decoder.Text<BaseEvent>
      Throws:
      javax.websocket.DecodeException
    • willDecode

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

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

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