Class AppclientCommandArguments
- java.lang.Object
-
- org.glassfish.appclient.client.acc.AppclientCommandArguments
-
public class AppclientCommandArguments extends Object
Encapsulates handling of appclient script command arguments and options.This class processes a list of strings which are the ACC and client arguments passed on the appclient script. It makes each ACC argument available explicitly by its own method (
getTargetServer()
for example). The arguments to be passed to the app client itself are available usinggetAppArgs()
.- Author:
- tjquinn
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAppArgs()
String
getConfigFilePath()
String
getMainclass()
String
getName()
char[]
getPassword()
String
getTargetServer()
String
getUser()
boolean
isHelp()
boolean
isNoappinvoke()
boolean
isTextauth()
boolean
isUsage()
static AppclientCommandArguments
newInstance(List<String> appclientCommandArgs)
Creates and returns a new AppclientCommandArguments object from which the ACC argument settings and the arguments to be passed to the app client can be retrieved.
-
-
-
Method Detail
-
newInstance
public static AppclientCommandArguments newInstance(List<String> appclientCommandArgs) throws UserError
Creates and returns a new AppclientCommandArguments object from which the ACC argument settings and the arguments to be passed to the app client can be retrieved.- Parameters:
appclientCommandArgs
- appclient command arguments to use in populating the launch info object- Returns:
- Throws:
UserError
-
isTextauth
public boolean isTextauth()
-
isNoappinvoke
public boolean isNoappinvoke()
-
isUsage
public boolean isUsage()
-
isHelp
public boolean isHelp()
-
getUser
public String getUser()
-
getPassword
public char[] getPassword()
-
getName
public String getName()
-
getTargetServer
public String getTargetServer()
-
getConfigFilePath
public String getConfigFilePath()
-
getMainclass
public String getMainclass()
-
-