Package org.cometd.common
Class JacksonJSONContextClient
java.lang.Object
org.cometd.common.JacksonJSONContext<org.cometd.bayeux.Message.Mutable,HashMapMessage>
org.cometd.common.JacksonJSONContextClient
- All Implemented Interfaces:
JSONContext.Client
public class JacksonJSONContextClient extends JacksonJSONContext<org.cometd.bayeux.Message.Mutable,HashMapMessage> implements JSONContext.Client
-
Constructor Summary
Constructors Constructor Description JacksonJSONContextClient() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(java.util.List<T> messages)java.lang.Stringgenerate(T message)JSONContext.GeneratorgetGenerator()JSONContext.ParsergetParser()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
-
Constructor Details
-
JacksonJSONContextClient
public JacksonJSONContextClient()
-
-
Method Details
-
rootArrayClass
- Specified by:
rootArrayClassin classJacksonJSONContext<org.cometd.bayeux.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
-
getGenerator
-