@Component public class TargetHolder extends Object implements org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
TargetHolder(org.springframework.web.client.RestTemplate restTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeTarget(Target target,
String credentialsProviderCommand)
Set the Skipper Server
Target. |
Target |
getTarget()
Return the
Target which encapsulates not only the Target URI but also
success/error messages + status. |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public TargetHolder(org.springframework.web.client.RestTemplate restTemplate)
public Target getTarget()
Target which encapsulates not only the Target URI but also
success/error messages + status.public void changeTarget(Target target, String credentialsProviderCommand) throws Exception
Target.target - Must not be null.credentialsProviderCommand - Exceptionpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareCopyright © 2017 Pivotal Software, Inc.. All rights reserved.