Class 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 java.lang.Object

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

      • JettyJSONContextClient

        public JettyJSONContextClient()
    • Method Detail

      • 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)