Package org.cometd.server
Interface JSONContextServer
-
- All Superinterfaces:
JSONContext<ServerMessage.Mutable>
- All Known Implementing Classes:
JacksonJSONContextServer
,JettyJSONContextServer
public interface JSONContextServer extends JSONContext<ServerMessage.Mutable>
Server specific
JSONContext
that binds toServerMessage.Mutable
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cometd.common.JSONContext
JSONContext.AsyncParser, JSONContext.Client, JSONContext.Generator, JSONContext.Parser
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String
generate(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
-
-
-
-
Method Detail
-
generate
default java.lang.String generate(ServerMessage.Mutable message)
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
-
-