Class BaseSvensonJSONContext<T extends org.cometd.bayeux.Message.Mutable>
java.lang.Object
com.cumulocity.sdk.client.notification.BaseSvensonJSONContext<T>
- Direct Known Subclasses:
ClientSvensonJSONContext
public abstract class BaseSvensonJSONContext<T extends org.cometd.bayeux.Message.Mutable>
extends Object
-
Constructor Summary
ConstructorDescriptionBaseSvensonJSONContext
(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser) BaseSvensonJSONContext
(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser, Class<?> dataType) -
Method Summary
Modifier and TypeMethodDescriptionprotected T[]
asArrayOfMessages
(Collection<Map<String, Object>> collection) org.cometd.common.JSONContext.Generator
org.cometd.common.JSONContext.Parser
T[]
parse
(InputStream stream) T[]
T[]
protected abstract Class
protected abstract T
-
Constructor Details
-
BaseSvensonJSONContext
public BaseSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser) -
BaseSvensonJSONContext
public BaseSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser, Class<?> dataType)
-
-
Method Details
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
parse
- Throws:
ParseException
-
asArrayOfMessages
-
targetClass
-
toMessage
-
getGenerator
public org.cometd.common.JSONContext.Generator getGenerator() -
getParser
public org.cometd.common.JSONContext.Parser getParser()
-