Geomajas Community Documentation

6.1. CommandDispatcher service

The command dispatcher is the main command execution service. It accepts commands serializable data for executing a command and returns a response which can again be serialized. It is the main entry point into the back-end for use by the faces.

Geomajas face and commands

Figure 6.1. Geomajas face and commands


The following methods are provided:

  • CommandResponse execute(String commandName, CommandRequest commandRequest, String userToken, String locale) : given the command name, request object, user token and locale, try to execute the requested command. The result, including any exception which may have been thrown are included in the returned response object.