Class ChatDecoder
- java.lang.Object
-
- org.glassfish.tyrus.sample.chat.chatdata.ChatDecoder
-
- All Implemented Interfaces:
Decoder,Decoder.Text<ChatMessage>
public class ChatDecoder extends java.lang.Object implements Decoder.Text<ChatMessage>
- Author:
- Stepan Kopriva
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.websocket.Decoder
Decoder.Binary<T extends java.lang.Object>, Decoder.BinaryStream<T extends java.lang.Object>, Decoder.Text<T extends java.lang.Object>, 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 ChatMessagedecode(java.lang.String s)voiddestroy()voidinit(EndpointConfig config)booleanwillDecode(java.lang.String s)
-
-
-
Method Detail
-
decode
public ChatMessage decode(java.lang.String s)
- Specified by:
decodein interfaceDecoder.Text<ChatMessage>
-
willDecode
public boolean willDecode(java.lang.String s)
- Specified by:
willDecodein interfaceDecoder.Text<ChatMessage>
-
init
public void init(EndpointConfig config)
-
-