Package org.cometd.common
Class JettyJSONContextClient
- java.lang.Object
-
- org.cometd.common.JettyJSONContext<Message.Mutable>
-
- org.cometd.common.JettyJSONContextClient
-
- All Implemented Interfaces:
JSONContext.Client
public class JettyJSONContextClient extends JettyJSONContext<Message.Mutable> implements JSONContext.Client
-
-
Constructor Summary
Constructors Constructor Description JettyJSONContextClient()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
generate(List<T> messages)
String
generate(T message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
protected Message.Mutable
newRoot()
protected Message.Mutable[]
newRootArray(int size)
T[]
parse(InputStream stream)
T[]
parse(Reader reader)
T[]
parse(String json)
-
Methods inherited from class org.cometd.common.JettyJSONContext
generate, generate, getGenerator, getJSON, getParser, parse, parse, parse
-
-
-
-
Method Detail
-
newRoot
protected Message.Mutable newRoot()
- Specified by:
newRoot
in classJettyJSONContext<Message.Mutable>
-
newRootArray
protected Message.Mutable[] newRootArray(int size)
- Specified by:
newRootArray
in classJettyJSONContext<Message.Mutable>
-
parse
public abstract T[] parse(InputStream stream) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(Reader reader) throws ParseException
- Throws:
ParseException
-
parse
public abstract T[] parse(String json) throws ParseException
- Throws:
ParseException
-
generate
public abstract String generate(T message)
-
getParser
public abstract JSONContext.Parser getParser()
-
getGenerator
public abstract JSONContext.Generator getGenerator()
-
-