Package org.cometd.common
Class JacksonJSONContext<T extends org.cometd.bayeux.Message.Mutable,I extends T>
java.lang.Object
org.cometd.common.JacksonJSONContext<T,I>
- Direct Known Subclasses:
JacksonJSONContextClient
public abstract class JacksonJSONContext<T extends org.cometd.bayeux.Message.Mutable,I extends T>
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description protectedJacksonJSONContext() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(java.util.List<T> messages)java.lang.Stringgenerate(T message)JSONContext.GeneratorgetGenerator()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()JSONContext.ParsergetParser()T[]parse(java.io.InputStream stream)T[]parse(java.io.Reader reader)T[]parse(java.lang.String json)protected abstract java.lang.Class<I[]>rootArrayClass()
-
Constructor Details
-
JacksonJSONContext
protected JacksonJSONContext()
-
-
Method Details
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
rootArrayClass
-
parse
- Throws:
java.text.ParseException
-
parse
- Throws:
java.text.ParseException
-
parse
- Throws:
java.text.ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-