public class ClientCLP extends ApplicationCommandLineParser
Modifier and Type | Class and Description |
---|---|
protected static class |
ClientCLP.OptionAutoLogin |
protected static class |
ClientCLP.OptionAutoReconnect |
protected static class |
ClientCLP.OptionNetIo |
protected static class |
ClientCLP.OptionNoMessage |
protected static class |
ClientCLP.OptionPassword |
protected static class |
ClientCLP.OptionPingDelay |
protected static class |
ClientCLP.OptionRequestTimeout |
protected static class |
ClientCLP.OptionUser |
protected static class |
ClientCLP.OptionZipTransfer |
optApplicationName, optPrintVersion
optDebug, optDemo, optHelp, optLocale, optLogDir, optNoConsole, optTest, optVerbose
Constructor and Description |
---|
ClientCLP(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 |
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, addOptionBoolean, addOptionOutFile, createHelpText, createHelpText, createOptionList, createSyntaxLine, ensureParsed, fetchDefinedOptionFor, findDefinedOptionFor, getArgument, getArgumentCount, getArguments, getLogDir, getMainClass, getStartLogLevel, hasArguments, isDebug, isDemoMode, isExitOnError, isParsed, isSuppressConsoleLogging, isTestMode, isVerbose, parse, removeOption, removeOption, setExitOnError
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 © 2011 EsprIT-Systems. All Rights Reserved.