@Component @Configuration @EnableHypermediaSupport(type=HAL) 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() |
List<Object> |
info() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) |
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 |
setShellDataflowMode(DataFlowMode shellDataflowMode) |
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) |
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)
public void setShellDataflowMode(DataFlowMode shellDataflowMode)
@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 (valid only with a username)",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 void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.