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
  • Constructor Details

    • JacksonJSONContext

      protected JacksonJSONContext()
  • Method Details

    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • rootArrayClass

      protected abstract java.lang.Class<I[]> rootArrayClass()
    • parse

      public M[] parse​(java.io.Reader reader) throws java.text.ParseException
      Throws:
      java.text.ParseException
    • parse

      public M[] parse​(java.lang.String json) throws java.text.ParseException
      Throws:
      java.text.ParseException
    • newAsyncParser

      public JSONContext.AsyncParser newAsyncParser()
    • generate

      public java.lang.String generate​(M message)
    • generate

      public java.lang.String generate​(java.util.List<M> messages)
    • getParser

      public JSONContext.Parser getParser()
    • getGenerator

      public JSONContext.Generator getGenerator()