Package org.cometd.common
Class JacksonJSONContext<M extends Message.Mutable,I extends M>
java.lang.Object
org.cometd.common.JacksonJSONContext<M,I>
- Direct Known Subclasses:
JacksonJSONContextClient
,JacksonJSONContextServer
public abstract class JacksonJSONContext<M extends Message.Mutable,I extends M>
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
JacksonJSONContext.ObjectMapperGenerator
-
Constructor Summary
Constructors Modifier Constructor Description protected
JacksonJSONContext()
-
Method Summary
Modifier and Type Method Description java.lang.String
generate(java.util.List<M> messages)
java.lang.String
generate(M message)
JSONContext.Generator
getGenerator()
com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper()
JSONContext.Parser
getParser()
JSONContext.AsyncParser
newAsyncParser()
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
-