Package org.cometd.server
Class JacksonJSONContextServer
java.lang.Object
org.cometd.common.JacksonJSONContext<ServerMessage.Mutable,ServerMessageImpl>
org.cometd.server.JacksonJSONContextServer
- All Implemented Interfaces:
JSONContext.Server
public class JacksonJSONContextServer extends JacksonJSONContext<ServerMessage.Mutable,ServerMessageImpl> implements JSONContext.Server
-
Constructor Summary
Constructors Constructor Description JacksonJSONContextServer()
-
Method Summary
Modifier and Type Method Description String
generate(List<ServerMessage.Mutable> messages)
String
generate(ServerMessage.Mutable message)
JSONContext.Generator
getGenerator()
JSONContext.Parser
getParser()
ServerMessage.Mutable[]
parse(InputStream stream)
ServerMessage.Mutable[]
parse(Reader reader)
ServerMessage.Mutable[]
parse(String json)
protected Class<ServerMessageImpl[]>
rootArrayClass()
Methods inherited from class org.cometd.common.JacksonJSONContext
generate, generate, getGenerator, getObjectMapper, getParser, parse, parse, parse
-
Constructor Details
-
JacksonJSONContextServer
public JacksonJSONContextServer()
-
-
Method Details
-
rootArrayClass
- Specified by:
rootArrayClass
in classJacksonJSONContext<ServerMessage.Mutable,ServerMessageImpl>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-