Module org.apache.johnzon.websocket
Class JsonbTextDecoder
java.lang.Object
org.apache.johnzon.websocket.internal.TypeAwareDecoder
org.apache.johnzon.websocket.jsonb.JsonbTextDecoder
- All Implemented Interfaces:
jakarta.websocket.Decoder,jakarta.websocket.Decoder.TextStream<Object>
public class JsonbTextDecoder
extends TypeAwareDecoder
implements jakarta.websocket.Decoder.TextStream<Object>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonbTextDecoder(jakarta.json.bind.Jsonb jsonb, Type type) JsonbTextDecoder(Type type) -
Method Summary
-
Field Details
-
mapper
protected jakarta.json.bind.Jsonb mapper -
type
-
-
Constructor Details
-
JsonbTextDecoder
public JsonbTextDecoder() -
JsonbTextDecoder
-
JsonbTextDecoder
-
-
Method Details
-
decode
- Specified by:
decodein interfacejakarta.websocket.Decoder.TextStream<Object>- Throws:
jakarta.websocket.DecodeException
-
init
public void init(jakarta.websocket.EndpointConfig endpointConfig) - Specified by:
initin interfacejakarta.websocket.Decoder- Overrides:
initin classTypeAwareDecoder
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.websocket.Decoder
-