Spice Vipers

Release 1.02 - ...

The global Spice viper class provides access to the command manager in SXML. Various vipers exist to manage commands and query the current command set. The command manager is initially filled with the command parameters that are found on the querystring of the current HTTP request. 

Querying commands

Use the spice.getcommandinfo viper to get access to the complete list of available commands and parameters. The available command consumers (image processor and PDF generator for instance) define a set of commands and register this information with the command manager.

To access the set of command values for the current HTTP request use the spice.command.get and spice.command.getall vipers. Note that the vipers with the prefix spice.command act on the current command set, all other spice commands provide global information.

Managing commands

The spice.command.add, spice.command.clear, spice.command.remove, spice.command.removeat and spice.command.set vipers and their overloads are used to manage the commands for the current HTTP request.