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
ConstructorDescriptionClientSvensonJSONContext
(Class<?> dataType) ClientSvensonJSONContext
(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser) ClientSvensonJSONContext
(org.svenson.JSON jsonGenerator, org.svenson.JSONParser jsonParser, Class<?> dataType) -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(org.cometd.bayeux.Message.Mutable arg0) org.cometd.common.JSONContext.Generator
org.cometd.common.JSONContext.Parser
org.cometd.bayeux.Message.Mutable[]
parse
(InputStream arg0) org.cometd.bayeux.Message.Mutable[]
org.cometd.bayeux.Message.Mutable[]
protected Class
protected org.cometd.bayeux.Message.Mutable
Methods inherited from class com.cumulocity.sdk.client.notification.BaseSvensonJSONContext
asArrayOfMessages, generate, generate, getGenerator, getParser, parse, parse, parse
-
Constructor Details
-
ClientSvensonJSONContext
public ClientSvensonJSONContext() -
ClientSvensonJSONContext
-
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 Details
-
targetClass
- Specified by:
targetClass
in classBaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable>
-
toMessage
- Specified by:
toMessage
in classBaseSvensonJSONContext<org.cometd.bayeux.Message.Mutable>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
org.cometd.common.JSONContext.Parser getParser() -
getGenerator
org.cometd.common.JSONContext.Generator getGenerator()
-