Package org.cometd.server
Class JettyJSONContextServer
- All Implemented Interfaces:
JSONContext.Server
public class JettyJSONContextServer extends JettyJSONContext<ServerMessage.Mutable> implements JSONContext.Server
-
Constructor Summary
Constructors Constructor Description JettyJSONContextServer()
-
Method Summary
Modifier and Type Method Description String
generate(List<ServerMessage.Mutable> messages)
String
generate(ServerMessage.Mutable message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
protected ServerMessage.Mutable
newRoot()
protected ServerMessage.Mutable[]
newRootArray(int size)
ServerMessage.Mutable[]
parse(InputStream stream)
ServerMessage.Mutable[]
parse(Reader reader)
ServerMessage.Mutable[]
parse(String json)
Methods inherited from class org.cometd.common.JettyJSONContext
generate, generate, getGenerator, getJSON, getParser, parse, parse, parse
-
Constructor Details
-
JettyJSONContextServer
public JettyJSONContextServer()
-
-
Method Details
-
newRoot
- Specified by:
newRoot
in classJettyJSONContext<ServerMessage.Mutable>
-
newRootArray
- Specified by:
newRootArray
in classJettyJSONContext<ServerMessage.Mutable>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-