Package org.cometd.common
Class JettyJSONContext<T extends org.cometd.bayeux.Message.Mutable>
java.lang.Object
org.cometd.common.JettyJSONContext<T>
- Direct Known Subclasses:
JettyJSONContextClient
public abstract class JettyJSONContext<T extends org.cometd.bayeux.Message.Mutable>
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description protectedJettyJSONContext() -
Method Summary
Modifier and Type Method Description java.lang.Stringgenerate(java.util.List<T> messages)java.lang.Stringgenerate(T message)JSONContext.GeneratorgetGenerator()org.eclipse.jetty.util.ajax.JSONgetJSON()JSONContext.ParsergetParser()protected abstract TnewRoot()protected abstract T[]newRootArray(int size)T[]parse(java.io.InputStream stream)T[]parse(java.io.Reader reader)T[]parse(java.lang.String json)
-
Constructor Details
-
JettyJSONContext
protected JettyJSONContext()
-
-
Method Details
-
getJSON
public org.eclipse.jetty.util.ajax.JSON getJSON() -
newRoot
-
newRootArray
-
parse
- Throws:
java.text.ParseException
-
parse
- Throws:
java.text.ParseException
-
parse
- Throws:
java.text.ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-