CommandBody

sealed interface CommandBody

The body of a ServerCommandRequest: JSON Bytes as received, a JSON Tree already parsed, or the command object itself (Value).

Inheritors

Types

Link copied to clipboard
class Bytes(val bytes: ByteArray) : CommandBody

A JSON document as received; decoding it is admission's job, so a malformed one is answered as such.

Link copied to clipboard
object Companion
Link copied to clipboard
class Tree @InternalWowApi constructor(val node: JsonNode) : CommandBody

A parsed JSON document.

Link copied to clipboard
class Value @InternalWowApi constructor(val command: Any) : CommandBody

The command object itself: admission takes it as it is, without decoding it, and checks it as it checks a decoded body; it must be of the command type the request names.