public class GenApiConfigAction 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 |
|---|
GenApiConfigAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Executes the command with the given arguments.
|
java.lang.Iterable<java.lang.String> |
genApiConfig(java.net.URL[] classPath,
java.lang.String outputDirPath,
java.lang.String warPath,
java.util.List<java.lang.String> serviceClassNames,
boolean outputToDisk)
Generates API configuration for an array of service classes.
|
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.Iterable<java.lang.String> genApiConfig(java.net.URL[] classPath,
java.lang.String outputDirPath,
java.lang.String warPath,
java.util.List<java.lang.String> serviceClassNames,
boolean outputToDisk)
throws java.lang.ClassNotFoundException,
java.io.IOException,
com.google.api.server.spi.config.ApiConfigException
classPath - Class path to load service classes and their dependenciesoutputDirPath - Directory to write API configuration files intoserviceClassNames - Array of service class names of the APIwarPath - Directory or file containing a WAR layoutoutputToDisk - Iff true, outputs a *.api file to disk for each API.java.lang.ClassNotFoundExceptionjava.io.IOExceptioncom.google.api.server.spi.config.ApiConfigExceptionpublic java.lang.String getUsageString()
EndpointsToolActiongetUsageString in class EndpointsToolAction