public class RestTemplateConfigurer extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
RestTemplateConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.web.client.RestTemplate |
configureRestTemplate(org.springframework.web.client.RestTemplate restTemplate,
TeamViewerTokenProvider teamViewerTokenProvider)
Adds an interceptor that provides the auth token to the rest template.
|
public static org.springframework.web.client.RestTemplate configureRestTemplate(org.springframework.web.client.RestTemplate restTemplate,
TeamViewerTokenProvider teamViewerTokenProvider)
throws IllegalStateException
restTemplate - RestTemplate to configureteamViewerTokenProvider - TeamViewerTokenProvider that will provide the login tokenIllegalStateException - On null restTemplate or teamViewerTokenProviderCopyright © 2017 Erigir. All rights reserved.