public class StatusCliArgumentParser extends SecureConnectionCliParser
noPropertiesFileArg, propertiesFileArg, secureArgsList, verboseArg
Constructor and Description |
---|
StatusCliArgumentParser(String mainClassName)
Creates a new instance of this argument parser with no arguments.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultBindDn()
Returns the bind DN default value.
|
String |
getExplicitBindDn()
Returns the bind DN explicitly provided in the command-line.
|
int |
getRefreshPeriod()
Returns the refresh period (in seconds) specified in the command-line.
|
void |
initializeGlobalArguments(OutputStream outStream)
Initialize Global option.
|
boolean |
isInteractive()
Tells whether the user specified to have an interactive status CLI or not.
|
boolean |
isScriptFriendly()
Tells whether the user specified to have a script-friendly output or not.
|
createGlobalArguments, getAdministratorUID, getBindDN, getBindPassword, getConnectTimeout, getHostName, getPort, getTrustManager, initializeGlobalArguments, initializeGlobalArguments, isVerbose, validateGlobalOptions, validateGlobalOptions
addArgument, defaultSubCommand, getSelectedSubCommand, getSubCommand, getSubCommands, getUsage, setUsageArgument, setUsageGroupArgument
addArgument, addDefaultArgument, addLdapConnectionArgument, displayMessageAndUsageReference, getArgumentForLongId, getArgumentForShortId, getArguments, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getShortToolDescription, getTrailingArguments, isUsageArgumentPresent, isVersionArgumentPresent, parseArguments, parseArguments, parseArguments, replaceArgument, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setShortToolDescription, setUsageOrVersionDisplayed, setVersionHandler, usageOrVersionDisplayed
public StatusCliArgumentParser(String mainClassName)
mainClassName
- The fully-qualified name of the Java class that should
be invoked to launch the program with which this
argument parser is associated.public void initializeGlobalArguments(OutputStream outStream)
outStream
- The output stream used for the usage.public boolean isInteractive()
true
if the user specified to have an interactive
status CLI and false
otherwise.public boolean isScriptFriendly()
true
if the user specified to have a script-friendly
output and false
otherwise.public int getRefreshPeriod()
public String getExplicitBindDn()
null
if no bind DN was explicitly provided.public String getDefaultBindDn()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.