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