|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.cli.CLIUtil
public class CLIUtil
CLI Utility class
| Constructor Summary | |
|---|---|
CLIUtil()
|
|
| Method Summary | |
|---|---|
static void |
displayClosestMatch(String commandName,
String[] commands,
String msg,
Logger logger)
Display the commands from the list that are the closest match to the specified command. |
static String[] |
getAllCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
Return all commands, local and remote. |
static String[] |
getLocalCommands(org.jvnet.hk2.component.Habitat habitat)
Get all the known local commands. |
static String[] |
getRemoteCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
Get the list of commands from the remote server. |
static Map<String,String> |
readPasswordFileOptions(String passwordFileName,
boolean withPrefix)
Read passwords from the password file and save them in a java.util.Map. |
static void |
writeCommandToDebugLog(ProgramOptions po,
Environment env,
String[] args,
int exit)
Log the command, for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CLIUtil()
| Method Detail |
|---|
public static Map<String,String> readPasswordFileOptions(String passwordFileName,
boolean withPrefix)
throws CommandException
passwordFileName - password file namewithPrefix - decides whether prefix should be taken into account
CommandException
public static void displayClosestMatch(String commandName,
String[] commands,
String msg,
Logger logger)
throws InvalidCommandException
InvalidCommandException
public static String[] getAllCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
public static String[] getLocalCommands(org.jvnet.hk2.component.Habitat habitat)
public static String[] getRemoteCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
throws CommandException,
CommandValidationException
CommandException
CommandValidationException
public static void writeCommandToDebugLog(ProgramOptions po,
Environment env,
String[] args,
int exit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||