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 Stringgenerate(List<ServerMessage.Mutable> messages)Stringgenerate(ServerMessage.Mutable message)JSONContext.GeneratorgetGenerator()JSONContext.ParsergetParser()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:
rootArrayClassin classJacksonJSONContext<ServerMessage.Mutable,ServerMessageImpl>
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
-
getGenerator
-