Package org.cometd.common
Interface JSONContext.Server
-
- All Known Implementing Classes:
JacksonJSONContextServer
,JettyJSONContextServer
- Enclosing interface:
- JSONContext
public static interface JSONContext.Server
-
-
Method Summary
All Methods Instance Methods Abstract 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)
-
-
-
Method Detail
-
parse
T[] parse(InputStream stream) throws ParseException
- Throws:
ParseException
-
parse
T[] parse(Reader reader) throws ParseException
- Throws:
ParseException
-
parse
T[] parse(String json) throws ParseException
- Throws:
ParseException
-
generate
String generate(T message)
-
getParser
JSONContext.Parser getParser()
-
getGenerator
JSONContext.Generator getGenerator()
-
-