Class ControlCommand


  • public class ControlCommand
    extends java.lang.Object
    Set of commands that this controller can execute. Commands are comprised of an action and an optional parameter specific to that action.
    • Method Detail

      • getParameter

        protected java.lang.String getParameter()
      • createCommandUri

        public static java.lang.String createCommandUri​(ControlCommand.Action action,
                                                        java.lang.String parameter)
        Create a REST command uri.
        Parameters:
        action - The 'verb' of the command.
        parameter - The optional parameter.
        Returns:
        A string to send to the server as the end of the Uri.
      • parseUri

        public static ControlCommand parseUri​(java.lang.String commandUri)
        Parse a Uri into the required Command action and parameter.
        Parameters:
        commandUri - the properly formatted Uri.