public class GetClientLibAction 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 |
|---|
GetClientLibAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Executes the command with the given arguments.
|
java.lang.Object |
getClientLib(java.net.URL[] classPath,
java.lang.String language,
java.lang.String outputDirPath,
java.util.List<java.lang.String> serviceClassNames,
java.lang.String buildSystem,
java.lang.String hostname,
java.lang.String basePath,
boolean debug)
Generates a Java 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.lang.ClassNotFoundException,
java.io.IOException,
com.google.api.server.spi.config.ApiConfigException
EndpointsToolActionexecute in class EndpointsToolActionjava.lang.ClassNotFoundExceptionjava.io.IOExceptioncom.google.api.server.spi.config.ApiConfigExceptionpublic java.lang.Object getClientLib(java.net.URL[] classPath,
java.lang.String language,
java.lang.String outputDirPath,
java.util.List<java.lang.String> serviceClassNames,
java.lang.String buildSystem,
java.lang.String hostname,
java.lang.String basePath,
boolean debug)
throws java.lang.ClassNotFoundException,
java.io.IOException,
com.google.api.server.spi.config.ApiConfigException
classPath - Class path to load service classes and their dependencieslanguage - Language of the client library. Only "java" is supported right nowoutputDirPath - Directory to write output files intoserviceClassNames - Array of service class names of the APIbuildSystem - The build system to use for the client libraryhostname - The hostname to usebasePath - The base path to usedebug - Whether or not to output intermediate output filesjava.lang.ClassNotFoundExceptionjava.io.IOExceptioncom.google.api.server.spi.config.ApiConfigExceptionpublic java.lang.String getUsageString()
EndpointsToolActiongetUsageString in class EndpointsToolAction