- All Superinterfaces:
JSONContext<ServerMessage.Mutable>
- All Known Implementing Classes:
JacksonJSONContextServer
,JettyJSONContextServer
Server specific JSONContext
that binds to ServerMessage.Mutable
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.common.JSONContext
JSONContext.AsyncParser, JSONContext.Client, JSONContext.Generator, JSONContext.Parser
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
generate
(ServerMessage.Mutable message) Converts a single message to a JSON string.Methods inherited from interface org.cometd.common.JSONContext
getGenerator, getParser, newAsyncParser, parse
-
Method Details
-
generate
Description copied from interface:JSONContext
Converts a single message to a JSON string.
- Specified by:
generate
in interfaceJSONContext<ServerMessage.Mutable>
- Parameters:
message
- the message to stringify- Returns:
- the JSON string for the message
-