Interface JSONContextServer
- 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 Stringgenerate(ServerMessage.Mutable message) Converts a single message to a JSON string.Methods inherited from interface org.cometd.common.JSONContext
generate, getGenerator, getParser, newAsyncParser, parse, parse, parse
-
Method Details
-
generate
Description copied from interface:JSONContextConverts a single message to a JSON string.
- Specified by:
generatein interfaceJSONContext<ServerMessage.Mutable>- Parameters:
message- the message to stringify- Returns:
- the JSON string for the message
-