Package io.kjson.cloudevent
Object JSONCloudEventConverter
-
- All Implemented Interfaces:
public class JSONCloudEventConverterCustom serialization and deserialization functions for the CloudEventExt class, using the
kjsonlibrary.Because the Extension Context Attributes are required to be serialized as part of the outer Cloud Events envelope, custom code is needed to serialize and deserialize these objects correctly. These functions will perform that custom serialization and deserialization for the
kjsonlibrary.
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<String>standardAttributespublic final static JSONCloudEventConverterINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any, E extends Any> CloudEventExt<T, E>cloudEventExtFromJSON(JSONContext $self, JSONObject json)final <T extends Any, E extends Any> JSONObjectcloudEventExtToJSON(JSONContext $self, CloudEventExt<T, E> event)final <T extends Any, E extends Any> UnitaddCloudEventExtFromJSON(JSONConfig $self)final <T extends Any, E extends Any> UnitaddCloudEventExtToJSON(JSONConfig $self)final Set<String>getStandardAttributes()-
-
Method Detail
-
cloudEventExtFromJSON
final <T extends Any, E extends Any> CloudEventExt<T, E> cloudEventExtFromJSON(JSONContext $self, JSONObject json)
-
cloudEventExtToJSON
final <T extends Any, E extends Any> JSONObject cloudEventExtToJSON(JSONContext $self, CloudEventExt<T, E> event)
-
addCloudEventExtFromJSON
final <T extends Any, E extends Any> Unit addCloudEventExtFromJSON(JSONConfig $self)
-
addCloudEventExtToJSON
final <T extends Any, E extends Any> Unit addCloudEventExtToJSON(JSONConfig $self)
-
getStandardAttributes
final Set<String> getStandardAttributes()
-
-
-
-