Class OA2CommandLineClient

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Logable, edu.uiuc.ncsa.security.util.cli.Commands, edu.uiuc.ncsa.security.util.cli.ComponentManager

    public class OA2CommandLineClient
    extends CommandLineClient

    Created by Jeff Gaynor
    on 5/11/16 at 2:51 PM

    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl

        edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl.ListOnlyNotification
    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl

        COMMENT_START, COMMENT_START_OPTION, CONFIG_FILE_LONG_OPTION, CONFIG_FILE_OPTION, CONFIG_NAME_LONG_OPTION, CONFIG_NAME_OPTION, DEBUG_LONG_OPTION, DEBUG_OPTION, DEFAULT_LOG_FILE, ENV_LONG_OPTION, ENV_OPTION, FILE_SWITCH, HELP_LONG_OPTION, HELP_OPTION, INPUT_OPTION, LOG_FILE_LONG_OPTION, LOG_FILE_OPTION, OUTPUT_OPTION, USE_COMPONENT_LONG_OPTION, USE_COMPONENT_OPTION, VERBOSE_LONG_OPTION, VERBOSE_OPTION
    • Constructor Summary

      Constructors 
      Constructor Description
      OA2CommandLineClient​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)  
    • Constructor Detail

      • OA2CommandLineClient

        public OA2CommandLineClient​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
    • Method Detail

      • getHelpUtil

        public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
      • listComponents

        public List<String> listComponents()
      • setLoader

        public void setLoader​(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
        Specified by:
        setLoader in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
      • getLoader

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
        Specified by:
        getLoader in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
      • main

        public static void main​(String[] args)
      • runnit

        protected void runnit​(String[] args,
                              OA2CommandLineClient clc)
                       throws Throwable
        Does all the actual work of running this once it gets the right command line client instance.
        Parameters:
        args -
        clc -
        Throws:
        Throwable
      • print_help

        public void print_help()
                        throws Exception
        Specified by:
        print_help in interface edu.uiuc.ncsa.security.util.cli.Commands
        Overrides:
        print_help in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
        Throws:
        Exception
      • figureOutLoader

        protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> figureOutLoader​(String fileName,
                                                                                                                                                       String configName)
                                                                                                                                                throws Throwable
        Specified by:
        figureOutLoader in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
        Throws:
        Throwable
      • banner

        protected void banner()
      • about

        public void about()
      • use

        public boolean use​(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
                    throws Exception
        Specified by:
        use in interface edu.uiuc.ncsa.security.util.cli.ComponentManager
        Overrides:
        use in class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
        Throws:
        Exception