Package io.bdeploy.jersey.cli
Class RemoteServiceTool<T extends Annotation>
java.lang.Object
io.bdeploy.common.cli.ToolBase.CliTool
io.bdeploy.common.cli.ToolBase.ConfiguredCliTool<T>
io.bdeploy.jersey.cli.RemoteServiceTool<T>
- Direct Known Subclasses:
FetchTool,ManifestTool,PushTool
Base class for all CLI tools which need to access a remote service. Figuring
out the
RemoteService based on command line arguments is don entirely
here.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.bdeploy.common.cli.ToolBase.CliTool
ToolBase.CliTool.CliName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Class<? extends Annotation>>protected jakarta.ws.rs.core.SecurityContextprotected final RenderableResultRun the configured tool using configuration from the command line.protected abstract RenderableResultrun(T config, RemoteService remote) Methods inherited from class io.bdeploy.common.cli.ToolBase.ConfiguredCliTool
getConfig, getPrimaryConfigClass, getRawConfiguration, helpAndFail, helpAndFailIfMissing, runMethods inherited from class io.bdeploy.common.cli.ToolBase.CliTool
createDataTable, createEmptyResult, createNoOp, createResultWithErrorMessage, createResultWithSuccessMessage, createSuccess, getActivityReporter, getAuditorFactory, getDataFormat, isVerbose, out, setActivityReporter, setAuditorFactory, setDataFormat, setOutput, setVerbose
-
Constructor Details
-
RemoteServiceTool
-
-
Method Details
-
getConfigsForHelp
- Overrides:
getConfigsForHelpin classToolBase.ConfiguredCliTool<T extends Annotation>- Returns:
- all
Annotations for which to render help output.
-
run
Description copied from class:ToolBase.ConfiguredCliToolRun the configured tool using configuration from the command line.- Specified by:
runin classToolBase.ConfiguredCliTool<T extends Annotation>- Parameters:
config- the configuration instance for the tool.
-
getLocalContext
protected jakarta.ws.rs.core.SecurityContext getLocalContext() -
run
-