public class ClientCommandLineParser extends ApplicationCommandLineParser
Modifier and Type | Class and Description |
---|---|
protected static class |
ClientCommandLineParser.OptionAutoLogin |
protected static class |
ClientCommandLineParser.OptionAutoReconnect |
protected static class |
ClientCommandLineParser.OptionNetIo |
protected static class |
ClientCommandLineParser.OptionNoMessage |
protected static class |
ClientCommandLineParser.OptionPassword |
protected static class |
ClientCommandLineParser.OptionPingDelay |
protected static class |
ClientCommandLineParser.OptionRequestTimeout |
protected static class |
ClientCommandLineParser.OptionUser |
protected static class |
ClientCommandLineParser.OptionZipTransfer |
Modifier and Type | Field and Description |
---|---|
protected ClientCommandLineParser.OptionAutoLogin |
optAutoLogin |
protected ClientCommandLineParser.OptionAutoReconnect |
optAutoReconnect |
protected ClientCommandLineParser.OptionNetIo |
optNetIo |
protected ClientCommandLineParser.OptionPassword |
optPassword |
protected ClientCommandLineParser.OptionPingDelay |
optPingDelay |
protected ClientCommandLineParser.OptionRequestTimeout |
optRequestTimeout |
protected OptionServer |
optServer |
protected ClientCommandLineParser.OptionUser |
optUser |
protected OptionWorkspaceDir |
optWorkspaceDir |
protected ClientCommandLineParser.OptionZipTransfer |
optZipTransfer |
optApplicationName
espritVersion, optDebug, optDemo, optHelp, optLocale, optLogDir, optLogToFile, optNoConsole, optTest, optVerbose, optVersion
Constructor and Description |
---|
ClientCommandLineParser(java.lang.Class mainClass,
java.lang.String... args) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDependencies()
Is called after all options have been parsed.
|
protected ClientConfig |
createConfig()
May be overridden to return a specific
ApplicationConfig derivation which contains
all data extracted from the command line. |
NetIoType |
getNetIoType() |
java.lang.String |
getPassword() |
int |
getPingDelay() |
int |
getRequestTimeout() |
ServerHost |
getServerHost() |
java.lang.String |
getUserName() |
java.io.File |
getWorkspaceDir() |
boolean |
isAutoLogin() |
boolean |
isAutoReconnect() |
boolean |
isTransferZipped() |
void |
setDefaultWorkspaceDir(java.io.File defaultWorkspaceDir) |
void |
setWorkspaceDirEnvVariableName(java.lang.String envVarName)
Defines the name of the env-variable which is looked up to find out the
default workspace directory.
|
getApplicationName, getConfig, isPrintVersionOnly, setDefaultApplicationName
addOption, addOption, addSoftwareVersion, createHelpText, createHelpText, createOptionList, createSyntaxLine, ensureParsed, fetchDefinedOptionFor, findDefinedOptionFor, getArgument, getArgumentCount, getArguments, getCustomVersion, getEspritVersion, getLogDir, getMainClass, getSoftwareVersions, getStartLogLevel, handleParsingError, hasArguments, isDebug, isDemoMode, isExitAfterParsing, isLogToFile, isNoConsoleLog, isParsed, isTestMode, isVerbose, parse, removeOption, removeOption
protected final OptionServer optServer
protected final ClientCommandLineParser.OptionUser optUser
protected final ClientCommandLineParser.OptionPassword optPassword
protected final ClientCommandLineParser.OptionAutoLogin optAutoLogin
protected final ClientCommandLineParser.OptionAutoReconnect optAutoReconnect
protected final ClientCommandLineParser.OptionRequestTimeout optRequestTimeout
protected final ClientCommandLineParser.OptionPingDelay optPingDelay
protected final ClientCommandLineParser.OptionZipTransfer optZipTransfer
protected final OptionWorkspaceDir optWorkspaceDir
protected final ClientCommandLineParser.OptionNetIo optNetIo
public ClientCommandLineParser(java.lang.Class mainClass, java.lang.String... args)
public void setDefaultWorkspaceDir(java.io.File defaultWorkspaceDir)
public void setWorkspaceDirEnvVariableName(java.lang.String envVarName)
public java.io.File getWorkspaceDir()
protected void checkDependencies() throws java.lang.Exception
CommandLineParser
checkDependencies
in class CommandLineParser
java.lang.Exception
protected ClientConfig createConfig() throws java.lang.Exception
ApplicationCommandLineParser
ApplicationConfig
derivation which contains
all data extracted from the command line.createConfig
in class ApplicationCommandLineParser
java.lang.Exception
public ServerHost getServerHost()
public java.lang.String getUserName()
public java.lang.String getPassword()
public boolean isAutoLogin()
public boolean isAutoReconnect()
public boolean isTransferZipped()
public int getPingDelay()
public int getRequestTimeout()
public NetIoType getNetIoType()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.