Class JettyJSONContextClient

java.lang.Object
org.cometd.common.JettyJSONContext<org.cometd.bayeux.Message.Mutable>
org.cometd.common.JettyJSONContextClient
All Implemented Interfaces:
JSONContext.Client

public class JettyJSONContextClient
extends JettyJSONContext<org.cometd.bayeux.Message.Mutable>
implements JSONContext.Client
  • Constructor Summary

    Constructors 
    Constructor Description
    JettyJSONContextClient()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String generate​(java.util.List<T> messages)  
    java.lang.String generate​(T message)  
    JSONContext.Generator getGenerator()  
    JSONContext.Parser getParser()  
    protected org.cometd.bayeux.Message.Mutable newRoot()  
    protected org.cometd.bayeux.Message.Mutable[] newRootArray​(int size)  
    T[] parse​(java.io.InputStream stream)  
    T[] parse​(java.io.Reader reader)  
    T[] parse​(java.lang.String json)  

    Methods inherited from class org.cometd.common.JettyJSONContext

    generate, generate, getGenerator, getJSON, getParser, parse, parse, parse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • newRoot

      protected org.cometd.bayeux.Message.Mutable newRoot()
      Specified by:
      newRoot in class JettyJSONContext<org.cometd.bayeux.Message.Mutable>
    • newRootArray

      protected org.cometd.bayeux.Message.Mutable[] newRootArray​(int size)
      Specified by:
      newRootArray in class JettyJSONContext<org.cometd.bayeux.Message.Mutable>
    • parse

      public abstract T[] parse​(java.io.InputStream stream) throws java.text.ParseException
      Throws:
      java.text.ParseException
    • parse

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

      public abstract T[] parse​(java.lang.String json) throws java.text.ParseException
      Throws:
      java.text.ParseException
    • generate

      public abstract java.lang.String generate​(T message)
    • generate

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

      public abstract JSONContext.Parser getParser()
    • getGenerator

      public abstract JSONContext.Generator getGenerator()