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, optPrintVersionoptDebug, 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 |
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, setDefaultApplicationNameaddOption, 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, setExitOnErrorpublic 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
CommandLineParsercheckDependencies in class CommandLineParserjava.lang.Exceptionprotected ClientConfig createConfig() throws java.lang.Exception
ApplicationCommandLineParserApplicationConfig derivation which contains
all data extracted from the command line.createConfig in class ApplicationCommandLineParserjava.lang.Exceptionpublic 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 © 2012 EsprIT-Systems. All Rights Reserved.