Class AbstractRemoteCommandHandler

    • Constructor Detail

      • AbstractRemoteCommandHandler

        public AbstractRemoteCommandHandler()
    • Method Detail

      • check

        protected String check​(RemoteCommand cmd)
        Hook method for checks before handling the command.
        Parameters:
        cmd - the command to handle
        Returns:
        null if checks passed, otherwise error message
      • doHandle

        protected abstract String doHandle​(RemoteCommand cmd,
                                           RemoteCommandProcessor processor)
        Handles the command.
        Parameters:
        cmd - the command to handle
        processor - the processor for formatting/parsing
        Returns:
        null if successful, otherwise error message