public abstract class JettyJSONContext<M extends Message.Mutable> extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
JettyJSONContext.AsyncJSONFactory |
protected static class |
JettyJSONContext.AsyncJSONParser |
protected class |
JettyJSONContext.JSONGenerator |
Modifier | Constructor and Description |
---|---|
protected |
JettyJSONContext() |
Modifier and Type | Method and 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) |
public org.eclipse.jetty.util.ajax.JSON getJSON()
public org.eclipse.jetty.util.ajax.AsyncJSON.Factory getAsyncJSONFactory()
protected abstract M newRoot()
protected abstract M[] newRootArray(int size)
public M[] parse(InputStream stream) throws ParseException
ParseException
public M[] parse(Reader reader) throws ParseException
ParseException
public M[] parse(String json) throws ParseException
ParseException
public JSONContext.AsyncParser newAsyncParser()
public JSONContext.Parser getParser()
public JSONContext.Generator getGenerator()
public void putConvertor(String className, org.eclipse.jetty.util.ajax.JSON.Convertor convertor)
Copyright © 2008–2024 The CometD Project. All rights reserved.