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 Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
JettyJSONContext.AsyncJSONFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
JettyJSONContext()
-
Method Summary
Modifier and Type Method Description String
generate(List<M> messages)
String
generate(M message)
org.eclipse.jetty.util.ajax.AsyncJSON.Factory
getAsyncJSONFactory()
JSONContext.Generator
getGenerator()
org.eclipse.jetty.util.ajax.JSON
getJSON()
JSONContext.Parser
getParser()
JSONContext.AsyncParser
newAsyncParser()
protected abstract M
newRoot()
protected abstract M[]
newRootArray(int size)
M[]
parse(InputStream stream)
M[]
parse(Reader reader)
M[]
parse(String json)
void
putConvertor(String className, org.eclipse.jetty.util.ajax.JSON.Convertor convertor)
-
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:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
newAsyncParser
-
generate
-
generate
-
getParser
-
getGenerator
-
putConvertor
-