public interface JSONContextServer extends JSONContext<ServerMessage.Mutable>
Server specific JSONContext
that binds to ServerMessage.Mutable
.
JSONContext.AsyncParser, JSONContext.Client, JSONContext.Generator, JSONContext.Parser
Modifier and Type | Method and Description |
---|---|
default String |
generate(ServerMessage.Mutable message)
Converts a single message to a JSON string.
|
generate, getGenerator, getParser, newAsyncParser, parse, parse, parse
default String generate(ServerMessage.Mutable message)
JSONContext
Converts a single message to a JSON string.
generate
in interface JSONContext<ServerMessage.Mutable>
message
- the message to stringifyCopyright © 2008–2024 The CometD Project. All rights reserved.