Package org.cometd.common
Interface JSONContext.Server
- All Known Implementing Classes:
JacksonJSONContextServer
,JettyJSONContextServer
- Enclosing interface:
- JSONContext
public static interface JSONContext.Server
-
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)
-
Method Details
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
generate
-
generate
-
getParser
JSONContext.Parser getParser() -
getGenerator
JSONContext.Generator getGenerator()
-