Package org.cometd.common
Class JettyJSONContext<M extends org.cometd.bayeux.Message.Mutable>
java.lang.Object
org.cometd.common.JettyJSONContext<M>
- Direct Known Subclasses:
JettyJSONContextClient
public abstract class JettyJSONContext<M extends org.cometd.bayeux.Message.Mutable>
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classJettyJSONContext.AsyncJSONFactoryprotected static classJettyJSONContext.AsyncJSONParserprotected classJettyJSONContext.JSONGenerator -
Constructor Summary
Constructors Modifier Constructor Description protectedJettyJSONContext() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(java.util.List<M> messages)java.lang.Stringgenerate(M message)org.eclipse.jetty.util.ajax.AsyncJSON.FactorygetAsyncJSONFactory()JSONContext.GeneratorgetGenerator()org.eclipse.jetty.util.ajax.JSONgetJSON()JSONContext.ParsergetParser()JSONContext.AsyncParsernewAsyncParser()protected abstract MnewRoot()protected abstract M[]newRootArray(int size)M[]parse(java.io.Reader reader)M[]parse(java.lang.String json)voidputConvertor(java.lang.String className, org.eclipse.jetty.util.ajax.JSON.Convertor convertor)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JettyJSONContext
protected JettyJSONContext()
-
-
Method Details
-
getJSON
public org.eclipse.jetty.util.ajax.JSON getJSON() -
getAsyncJSONFactory
public org.eclipse.jetty.util.ajax.AsyncJSON.Factory getAsyncJSONFactory() -
newRoot
-
newRootArray
-
parse
- Throws:
java.text.ParseException
-
parse
- Throws:
java.text.ParseException
-
newAsyncParser
-
generate
-
generate
-
getParser
-
getGenerator
-
putConvertor
public void putConvertor(java.lang.String className, org.eclipse.jetty.util.ajax.JSON.Convertor convertor)
-