Class JettyJSONContext<M extends Message.Mutable>

java.lang.Object
org.cometd.common.JettyJSONContext<M>
Direct Known Subclasses:
JettyJSONContextClient, JettyJSONContextServer

public abstract class JettyJSONContext<M extends Message.Mutable> extends Object
  • Constructor Details Link icon

    • JettyJSONContext Link icon

      protected JettyJSONContext()
  • Method Details Link icon

    • getJSON Link icon

      public org.eclipse.jetty.util.ajax.JSON getJSON()
    • getAsyncJSONFactory Link icon

      public org.eclipse.jetty.util.ajax.AsyncJSON.Factory getAsyncJSONFactory()
    • newMessage Link icon

      protected abstract M newMessage()
    • parse Link icon

      public List<M> parse(String json) throws ParseException
      Throws:
      ParseException
    • newAsyncParser Link icon

      public JSONContext.AsyncParser newAsyncParser()
    • generate Link icon

      public String generate(M message)
    • getParser Link icon

      public JSONContext.Parser getParser()
    • getGenerator Link icon

      public JSONContext.Generator getGenerator()
    • putConvertor Link icon

      public void putConvertor(String className, org.eclipse.jetty.util.ajax.JSON.Convertor convertor)