org.cometd.common
Class JettyJSONContext<T extends Message.Mutable>
java.lang.Object
org.cometd.common.JettyJSONContext<T>
- Direct Known Subclasses:
- JettyJSONContextClient
public abstract class JettyJSONContext<T extends Message.Mutable>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyJSONContext
protected JettyJSONContext()
getJSON
public org.eclipse.jetty.util.ajax.JSON getJSON()
newRoot
protected abstract T newRoot()
newRootArray
protected abstract T[] newRootArray(int size)
parse
public T[] parse(InputStream stream)
throws ParseException
- Throws:
ParseException
parse
public T[] parse(Reader reader)
throws ParseException
- Throws:
ParseException
parse
public T[] parse(String json)
throws ParseException
- Throws:
ParseException
generate
public String generate(T message)
generate
public String generate(T[] messages)
Copyright © 2008-2012 Dojo Foundation. All Rights Reserved.