public abstract class AbstractService extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractService.OutputStreamResponseExtractor |
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected org.springframework.web.client.RestTemplate |
restTemplate |
Constructor and Description |
---|
AbstractService(org.springframework.web.client.RestTemplate restTemplate)
Deprecated.
|
AbstractService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataSettings settings)
Sets RESTful HTTP Spring template.
|
Modifier and Type | Method and Description |
---|---|
protected <T> T |
extractData(org.springframework.http.client.ClientHttpResponse response,
Class<T> cls) |
protected final org.springframework.web.client.RestTemplate restTemplate
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
public AbstractService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
restTemplate
- RESTful HTTP Spring templatesettings
- settings@Deprecated public AbstractService(org.springframework.web.client.RestTemplate restTemplate)
AbstractService(RestTemplate, GoodDataSettings)
restTemplate
- RESTful HTTP Spring templateprotected final <T> T extractData(org.springframework.http.client.ClientHttpResponse response, Class<T> cls) throws IOException
IOException
Copyright © 2019. All rights reserved.