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
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()
T[]
parse(InputStream stream)
T[]
parse(Reader reader)
T[]
parse(String json)
protected Class<ServerMessageImpl[]>
rootArrayClass()
-
Methods inherited from class org.cometd.common.JacksonJSONContext
generate, generate, getGenerator, getObjectMapper, getParser, parse, parse, parse
-
-
-
-
Method Detail
-
rootArrayClass
protected Class<ServerMessageImpl[]> rootArrayClass()
- Specified by:
rootArrayClass
in classJacksonJSONContext<ServerMessage.Mutable,ServerMessageImpl>
-
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()
-
-