Package com.gooddata
Class AbstractService
- java.lang.Object
-
- com.gooddata.AbstractService
-
- Direct Known Subclasses:
AccountService,AuditEventService,ConnectorService,DatasetService,ExecuteAfmService,ExportImportService,ExportService,FeatureFlagService,GdcService,LcmService,MetadataService,ModelService,NotificationService,OutputStageService,ProcessService,ProjectService,ProjectTemplateService,ReportService,WarehouseService
public abstract class AbstractService extends Object
Parent for GoodData services providing helpers for REST API calls and polling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractService.OutputStreamResponseExtractor
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMappermapperprotected org.springframework.web.client.RestTemplaterestTemplate
-
Constructor Summary
Constructors Constructor Description AbstractService(org.springframework.web.client.RestTemplate restTemplate)Deprecated.AbstractService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Sets RESTful HTTP Spring template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TextractData(org.springframework.http.client.ClientHttpResponse response, Class<T> cls)
-
-
-
Constructor Detail
-
AbstractService
public AbstractService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Sets RESTful HTTP Spring template. Should be called from constructor of concrete service extending this abstract one.- Parameters:
restTemplate- RESTful HTTP Spring templatesettings- settings
-
AbstractService
@Deprecated public AbstractService(org.springframework.web.client.RestTemplate restTemplate)
Deprecated.Sets RESTful HTTP Spring template. Should be called from constructor of concrete service extending this abstract one.- Parameters:
restTemplate- RESTful HTTP Spring template
-
-
Method Detail
-
extractData
protected final <T> T extractData(org.springframework.http.client.ClientHttpResponse response, Class<T> cls) throws IOException- Throws:
IOException
-
-