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 |
static Integer |
WAIT_BEFORE_RETRY_IN_MILLIS |
| Constructor and Description |
|---|
AbstractService(org.springframework.web.client.RestTemplate restTemplate)
Sets RESTful HTTP Spring template.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
extractData(org.springframework.http.client.ClientHttpResponse response,
Class<T> cls) |
public static final Integer WAIT_BEFORE_RETRY_IN_MILLIS
protected final org.springframework.web.client.RestTemplate restTemplate
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
public AbstractService(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - RESTful HTTP Spring templateprotected final <T> T extractData(org.springframework.http.client.ClientHttpResponse response,
Class<T> cls)
throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.