public abstract class JettyJSONContext<T extends Message.Mutable> extends Object
Modifier | Constructor and Description |
---|---|
protected |
JettyJSONContext() |
Modifier and Type | Method and Description |
---|---|
String |
generate(List<T> messages) |
String |
generate(T message) |
JSONContext.Generator |
getGenerator() |
org.eclipse.jetty.util.ajax.JSON |
getJSON() |
JSONContext.Parser |
getParser() |
protected abstract T |
newRoot() |
protected abstract T[] |
newRootArray(int size) |
T[] |
parse(InputStream stream) |
T[] |
parse(Reader reader) |
T[] |
parse(String json) |
public org.eclipse.jetty.util.ajax.JSON getJSON()
protected abstract T newRoot()
protected abstract T[] newRootArray(int size)
public T[] parse(InputStream stream) throws ParseException
ParseException
public T[] parse(Reader reader) throws ParseException
ParseException
public T[] parse(String json) throws ParseException
ParseException
public JSONContext.Parser getParser()
public JSONContext.Generator getGenerator()
Copyright © 2008–2016 The CometD Project. All rights reserved.