public class GenClientLibAction extends EndpointsToolAction
EndpointsToolAction.EndpointsOption| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
OPTION_BASE_PATH_LONG, OPTION_BASE_PATH_SHORT, OPTION_BUILD_SYSTEM_LONG, OPTION_BUILD_SYSTEM_SHORT, OPTION_CLASS_PATH_LONG, OPTION_CLASS_PATH_SHORT, OPTION_DEBUG, OPTION_FORMAT_LONG, OPTION_FORMAT_SHORT, OPTION_HOSTNAME_LONG, OPTION_HOSTNAME_SHORT, OPTION_LANGUAGE_LONG, OPTION_LANGUAGE_SHORT, OPTION_OUTPUT_DIR_LONG, OPTION_OUTPUT_DIR_SHORT, OPTION_WAR_LONG, OPTION_WAR_SHORT| Constructor and Description |
|---|
GenClientLibAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Executes the command with the given arguments.
|
java.lang.Object |
genClientLib(java.lang.String language,
java.lang.String outputDirPath,
java.lang.String discoveryDoc,
java.lang.String buildSystem)
Generates a client library for an API.
|
java.lang.Object |
genClientLibFromFile(java.lang.String language,
java.lang.String outputDirPath,
java.lang.String discoveryDocPath,
java.lang.String buildSystem)
Generates a client library for an API.
|
java.lang.String |
getUsageString()
Returns a usage string for help output.
|
apply, computeClassPath, getBasePath, getBuildSystem, getClassPath, getDebug, getExampleString, getFormat, getHelpLines, getHostname, getLanguage, getOpenApiOutputPath, getOptionOrDefault, getOutputPath, getServiceClassNames, getWarOutputPath, getWarPath, isHelpDisplayNeeded, makeBasePathOption, makeBuildSystemOption, makeClassPathOption, makeDebugOption, makeFormatOption, makeHostnameOption, makeLanguageOption, makeOpenApiOutputOption, makeOutputOption, makeWarOption, makeWarOutputOption, setExampleString, setHelpDisplayNeededpublic static final java.lang.String NAME
public boolean execute()
throws java.io.IOException
EndpointsToolActionexecute in class EndpointsToolActionjava.io.IOExceptionpublic java.lang.Object genClientLibFromFile(java.lang.String language,
java.lang.String outputDirPath,
java.lang.String discoveryDocPath,
java.lang.String buildSystem)
throws java.io.IOException
language - Language of the client library.outputDirPath - Directory to write generated client library intodiscoveryDocPath - Path to Discovery doc filebuildSystem - The build system to use for the client libraryjava.io.IOExceptionpublic java.lang.Object genClientLib(java.lang.String language,
java.lang.String outputDirPath,
java.lang.String discoveryDoc,
java.lang.String buildSystem)
throws java.io.IOException
language - Language of the client library.outputDirPath - Directory to write generated client library intodiscoveryDoc - Discovery doc text.buildSystem - The build system to use for the client libraryjava.io.IOExceptionpublic java.lang.String getUsageString()
EndpointsToolActiongetUsageString in class EndpointsToolAction