Class ListCommandSupport

    • Constructor Detail

      • ListCommandSupport

        public ListCommandSupport()
    • Method Detail

      • getHeaders

        protected abstract String[] getHeaders()
        Returns a String array containing the header names for the table
        Returns:
        a String array with the headers that will be used to render the table
      • buildDataTable

        protected abstract DataTable buildDataTable()
        Build a DataTable object that contains all the data for the object. Note that you might want to sort the data inside this method.
        Returns:
        a populated (and optionally sorted) DataTable object ready to be rendered either as a rendered table or as CSV
      • execute

        public Object execute()
                       throws Exception
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action
        Throws:
        Exception