Package org.cometd.common
Class JacksonJSONContext<M extends org.cometd.bayeux.Message.Mutable,I extends M>
java.lang.Object
org.cometd.common.JacksonJSONContext<M,I>
- Direct Known Subclasses:
JacksonJSONContextClient
public abstract class JacksonJSONContext<M extends org.cometd.bayeux.Message.Mutable,I extends M>
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classJacksonJSONContext.ObjectMapperGenerator -
Constructor Summary
Constructors Modifier Constructor Description protectedJacksonJSONContext() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(java.util.List<M> messages)java.lang.Stringgenerate(M message)JSONContext.GeneratorgetGenerator()com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()JSONContext.ParsergetParser()JSONContext.AsyncParsernewAsyncParser()M[]parse(java.io.Reader reader)M[]parse(java.lang.String json)protected abstract java.lang.Class<I[]>rootArrayClass()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
newAsyncParser
-
generate
-
generate
-
getParser
-
getGenerator
-