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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
generate(List<T> messages)
String
generate(T message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
T[]
parse(InputStream stream)
T[]
parse(Reader reader)
T[]
parse(String json)
protected Class<HashMapMessage[]>
rootArrayClass()
-
Methods inherited from class org.cometd.common.JacksonJSONContext
generate, generate, getGenerator, getObjectMapper, getParser, parse, parse, parse
-
-
-
-
Method Detail
-
rootArrayClass
protected Class<HashMapMessage[]> rootArrayClass()
- Specified by:
rootArrayClass
in classJacksonJSONContext<Message.Mutable,HashMapMessage>
-
parse
public abstract T[] parse(InputStream stream) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(Reader reader) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(String json) throws ParseException
- Throws:
ParseException
-
generate
public abstract String generate(T message)
-
getParser
public abstract JSONContext.Parser getParser()
-
getGenerator
public abstract JSONContext.Generator getGenerator()
-
-