|
YAACC - UPNP Client and Server
|
The server's side of the controller and metadata roles (issue #325, K15): the server/state with its controller and metadata objects, and the reading of a controller's client/command.
More...

Static Public Member Functions | |
| static String | serverState (ControllerView controller, MetadataView metadata) |
server/state with the given objects (a null object is omitted, which leaves that state unchanged on the client). | |
| static String | serverState (ControllerView controller, MetadataView metadata, ColorView color) |
As serverState(ControllerView, MetadataView), with the color object of the colour role. | |
| static Command | parseCommand (JSONObject payload) throws ProtocolException |
Reads the controller object of a client/command. | |
The server's side of the controller and metadata roles (issue #325, K15): the server/state with its controller and metadata objects, and the reading of a controller's client/command.
The client is untrusted: every number is range checked and a violation is a ProtocolException; what the server sends respects the limits of the protocol (texts are clipped on a character boundary, an over long URL is left out). Pure.
|
static |
Reads the controller object of a client/command.
| ProtocolException | if the object, the command or the parameter that the command needs is missing or out of range |
Referenced by de.yaacc.sendspin.control.ControllerHost.Session.command().
