Package org.cometd.common
Class JettyJSONContextClient
- java.lang.Object
-
- org.cometd.common.JettyJSONContext<org.cometd.bayeux.Message.Mutable>
-
- org.cometd.common.JettyJSONContextClient
-
- All Implemented Interfaces:
JSONContext.Client
public class JettyJSONContextClient extends JettyJSONContext<org.cometd.bayeux.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 java.lang.String
generate(java.util.List<T> messages)
java.lang.String
generate(T message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
protected org.cometd.bayeux.Message.Mutable
newRoot()
protected org.cometd.bayeux.Message.Mutable[]
newRootArray(int size)
T[]
parse(java.io.InputStream stream)
T[]
parse(java.io.Reader reader)
T[]
parse(java.lang.String json)
-
Methods inherited from class org.cometd.common.JettyJSONContext
generate, generate, getGenerator, getJSON, getParser, parse, parse, parse
-
-
-
-
Method Detail
-
newRoot
protected org.cometd.bayeux.Message.Mutable newRoot()
- Specified by:
newRoot
in classJettyJSONContext<org.cometd.bayeux.Message.Mutable>
-
newRootArray
protected org.cometd.bayeux.Message.Mutable[] newRootArray(int size)
- Specified by:
newRootArray
in classJettyJSONContext<org.cometd.bayeux.Message.Mutable>
-
parse
public abstract T[] parse(java.io.InputStream stream) throws java.text.ParseException
- Throws:
java.text.ParseException
-
parse
public abstract T[] parse(java.io.Reader reader) throws java.text.ParseException
- Throws:
java.text.ParseException
-
parse
public abstract T[] parse(java.lang.String json) throws java.text.ParseException
- Throws:
java.text.ParseException
-
generate
public abstract java.lang.String generate(T message)
-
generate
public abstract java.lang.String generate(java.util.List<T> messages)
-
getParser
public abstract JSONContext.Parser getParser()
-
getGenerator
public abstract JSONContext.Generator getGenerator()
-
-