Class OA2CommandLineClient
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
- org.oa4mp.server.admin.base.oauth2.myproxy.CommandLineClient
-
- org.oa4mp.server.admin.tools.oauth2.myproxy.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
-
-
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
about()
protected void
banner()
void
bootstrap()
protected edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
figureOutLoader(String fileName, String configName)
edu.uiuc.ncsa.security.util.cli.HelpUtil
getHelpUtil()
static OA2CommandLineClient
getInstance()
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment>
getLoader()
List<String>
listComponents()
static void
main(String[] args)
void
print_help()
protected void
runnit(String[] args, OA2CommandLineClient clc)
Does all the actual work of running this once it gets the right command line client instance.static void
setInstance(OA2CommandLineClient instance)
void
setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
void
start(String[] args)
boolean
use(edu.uiuc.ncsa.security.util.cli.InputLine inputLine)
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oauth2.base.CommandLineClient
getComponentName, getPrompt, useHelp
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
debug, doListNames, error, getCommandLine, getConfigFile, getConfigName, getEnvironment, getGlobalEnv, getIOInterface, getLogfileName, getMyLogger, getOptions, getOptions, hasOption, info, initialize, isDebugOn, isVerbose, listConfigs, listXMLConfigs, load, loadConfig, padLineWithBlanks, parseCommandLine, readEnv, say, sayv, setConfigFile, setConfigName, setDebugOn, setEnvironment, setIOInterface, setLogfileName, setMyLogger, setVerbose, showHelp, showLoadHelp, trace, warn
-
-
-
-
Method Detail
-
getHelpUtil
public edu.uiuc.ncsa.security.util.cli.HelpUtil getHelpUtil()
-
setLoader
public void setLoader(edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> loader)
- Specified by:
setLoader
in classedu.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 classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
-
getInstance
public static OA2CommandLineClient getInstance()
-
setInstance
public static void setInstance(OA2CommandLineClient instance)
-
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 interfaceedu.uiuc.ncsa.security.util.cli.Commands
- Overrides:
print_help
in classedu.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 classedu.uiuc.ncsa.security.util.cli.ConfigurableCommandsImpl
- Throws:
Throwable
-
banner
protected void banner()
-
about
public void about()
-
-