Package org.mycore.frontend.ws.common
Class MCRWebsocketJSONDecoder
java.lang.Object
org.mycore.frontend.ws.common.MCRWebsocketJSONDecoder
- All Implemented Interfaces:
jakarta.websocket.Decoder
,jakarta.websocket.Decoder.Text<com.google.gson.JsonObject>
public class MCRWebsocketJSONDecoder
extends Object
implements jakarta.websocket.Decoder.Text<com.google.gson.JsonObject>
Decodes a json string to a gson object.
- Author:
- Matthias Eichner
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MCRWebsocketJSONDecoder
public MCRWebsocketJSONDecoder()
-
-
Method Details
-
decode
- Specified by:
decode
in interfacejakarta.websocket.Decoder.Text<com.google.gson.JsonObject>
- Throws:
jakarta.websocket.DecodeException
-
init
public void init(jakarta.websocket.EndpointConfig config) - Specified by:
init
in interfacejakarta.websocket.Decoder
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.websocket.Decoder
-
willDecode
- Specified by:
willDecode
in interfacejakarta.websocket.Decoder.Text<com.google.gson.JsonObject>
-