Class ClientSvensonJSONContext
- java.lang.Object
-
- com.cumulocity.sdk.client.notification.BaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable>
-
- com.cumulocity.sdk.client.notification.ClientSvensonJSONContext
-
- All Implemented Interfaces:
org.cometd.common.JSONContext.Client
public class ClientSvensonJSONContext extends BaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable> implements org.cometd.common.JSONContext.Client
-
-
Constructor Summary
Constructors Constructor Description ClientSvensonJSONContext()
ClientSvensonJSONContext(Class<?> dataType)
ClientSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser)
ClientSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser, Class<?> dataType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
generate(List<T> arg0)
String
generate(T arg0)
org.cometd.common.JSONContext.Generator
getGenerator()
org.cometd.common.JSONContext.Parser
getParser()
T[]
parse(InputStream arg0)
T[]
parse(Reader arg0)
T[]
parse(String arg0)
protected Class
targetClass()
protected org.cometd.bayeux.Message.Mutable
toMessage(Map<String,Object> messageProperties)
-
Methods inherited from class com.cumulocity.sdk.client.notification.BaseSvensonJSONContext
asArrayOfMessages, generate, generate, getGenerator, getParser, parse, parse, parse
-
-
-
-
Constructor Detail
-
ClientSvensonJSONContext
public ClientSvensonJSONContext()
-
ClientSvensonJSONContext
public ClientSvensonJSONContext(Class<?> dataType)
-
ClientSvensonJSONContext
public ClientSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser)
-
ClientSvensonJSONContext
public ClientSvensonJSONContext(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser, Class<?> dataType)
-
-
Method Detail
-
targetClass
protected Class targetClass()
- Specified by:
targetClass
in classBaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable>
-
toMessage
protected org.cometd.bayeux.Message.Mutable toMessage(Map<String,Object> messageProperties)
- Specified by:
toMessage
in classBaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable>
-
parse
public abstract T[] parse(InputStream arg0) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(Reader arg0) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(String arg0) throws ParseException
- Throws:
ParseException
-
generate
public abstract String generate(T arg0)
-
getParser
public abstract org.cometd.common.JSONContext.Parser getParser()
-
getGenerator
public abstract org.cometd.common.JSONContext.Generator getGenerator()
-
-