public static class MatsSocketStatics.MessageToStringDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<java.lang.Object>
MatsSocketServer.MatsSocketEnvelopeWithMetaDto will be Deserialized (made into object) with the "msg" field
directly to the JSON that is present there (i.e. a String, containing JSON), using this class. However, upon
serialization, any object there will be serialized to a JSON String (UNLESS it is a MatsSocketStatics.DirectJson, in
which case its value is copied in verbatim). The rationale is that upon reception, we do not (yet) know which
type (DTO class) this message has, which will be resolved later - and then this JSON String will be deserialized
into that specific DTO class.| Constructor and Description |
|---|
MessageToStringDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic java.lang.Object deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
throws java.io.IOException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<java.lang.Object>java.io.IOException