Package org.cometd.common
Class JacksonJSONContextClient
java.lang.Object
org.cometd.common.JacksonJSONContext<Message.Mutable,HashMapMessage>
org.cometd.common.JacksonJSONContextClient
- All Implemented Interfaces:
JSONContext.Client
public class JacksonJSONContextClient extends JacksonJSONContext<Message.Mutable,HashMapMessage> implements JSONContext.Client
-
Constructor Summary
Constructors Constructor Description JacksonJSONContextClient()
-
Method Summary
Modifier and Type Method Description String
generate(List<Message.Mutable> messages)
String
generate(Message.Mutable message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
Message.Mutable[]
parse(InputStream stream)
Message.Mutable[]
parse(Reader reader)
Message.Mutable[]
parse(String json)
protected Class<HashMapMessage[]>
rootArrayClass()
Methods inherited from class org.cometd.common.JacksonJSONContext
generate, generate, getGenerator, getObjectMapper, getParser, parse, parse, parse
-
Constructor Details
-
JacksonJSONContextClient
public JacksonJSONContextClient()
-
-
Method Details
-
rootArrayClass
- Specified by:
rootArrayClass
in classJacksonJSONContext<Message.Mutable,HashMapMessage>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-