@Component @Configuration public class ConfigCommands extends Object implements org.springframework.shell.core.CommandMarker, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, org.springframework.context.ApplicationContextAware
http://localhost:9393| Modifier and Type | Field and Description |
|---|---|
static String |
HORIZONTAL_LINE |
| Constructor and Description |
|---|
ConfigCommands() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Will execute the targeting of the Data Flow server ONLY if the shell
is executing shell command passed directly from the console using
--spring.shell.commandFile. |
List<Object> |
info() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
Will execute the targeting of the Data Flow server ONLY if the shell
is executing shell command passed directly from the console using
--spring.shell.commandFile. |
org.springframework.web.client.RestTemplate |
restTemplate(org.springframework.core.env.Environment ev) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDataFlowShell(DataFlowShell shell) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setServerUri(String serverUri) |
void |
setTargetHolder(TargetHolder targetHolder) |
void |
setUserInput(UserInput userInput) |
String |
target(String targetUriString,
String targetUsername,
String targetPassword,
String credentialsProviderCommand,
boolean skipSslValidation,
String proxyUri,
String proxyUsername,
String proxyPassword) |
String |
triggerTarget() |
public static final String HORIZONTAL_LINE
@Autowired public void setUserInput(UserInput userInput)
@Autowired public void setTargetHolder(TargetHolder targetHolder)
@Autowired public void setDataFlowShell(DataFlowShell shell)
@Autowired public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
@Bean public org.springframework.web.client.RestTemplate restTemplate(org.springframework.core.env.Environment ev)
public void setServerUri(String serverUri)
@CliCommand(value="dataflow config server", help="Configure the Spring Cloud Data Flow REST server to use") public String target(@CliOption(mandatory=false,key={"","uri"},help="the location of the Spring Cloud Data Flow REST endpoint",unspecifiedDefaultValue="http://localhost:9393/") String targetUriString, @CliOption(mandatory=false,key="username",help="the username for authenticated access to the Admin REST endpoint",unspecifiedDefaultValue="") String targetUsername, @CliOption(mandatory=false,key="password",help="the password for authenticated access to the Admin REST endpoint (valid only with a username)",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") String targetPassword, @CliOption(mandatory=false,key="credentials-provider-command",help="a command to run that outputs the HTTP credentials used for authentication",unspecifiedDefaultValue="") String credentialsProviderCommand, @CliOption(mandatory=false,key="skip-ssl-validation",help="accept any SSL certificate (even self-signed)",specifiedDefaultValue="true",unspecifiedDefaultValue="false") boolean skipSslValidation, @CliOption(mandatory=false,key="proxy-uri",help="the uri of the proxy server",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") String proxyUri, @CliOption(mandatory=false,key="proxy-username",help="the username for authenticated access to the secured proxy server",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") String proxyUsername, @CliOption(mandatory=false,key="proxy-password",help="the password for authenticated access to the secured proxy server (valid only with a username)",specifiedDefaultValue="",unspecifiedDefaultValue="__NULL__") String proxyPassword)
@CliCommand(value="dataflow config info", help="Show the Dataflow server being used") public List<Object> info()
public String triggerTarget()
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
--spring.shell.commandFile.
see also: https://github.com/spring-projects/spring-shell/issues/252onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>public void afterPropertiesSet()
throws Exception
--spring.shell.commandFile.
see also: https://github.com/spring-projects/spring-shell/issues/252afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.