Class BaseCommand

    • Constructor Detail

      • BaseCommand

        public BaseCommand()
    • Method Detail

      • getSummaryOutput

        protected abstract String getSummaryOutput​(CommonResponse response)
        Returns the summary string for the given response. Override in each command.
        Parameters:
        response - the response
        Returns:
        the summary string
      • getFullOutput

        protected abstract String getFullOutput​(CommonResponse response)
        Returns the full string for the given response.
        Parameters:
        response - the product response
        Returns:
        the full output string
      • printOutput

        protected void printOutput​(CommonResponse response)
                            throws Exception
        Prints the output to the console, taking into account the output type.
        Throws:
        Exception