Package com.gooddata.sdk.service
Class AbstractService
java.lang.Object
com.gooddata.sdk.service.AbstractService
- Direct Known Subclasses:
AccountService,AuditEventService,ConnectorService,DatasetService,ExecuteAfmService,ExportImportService,ExportService,FeatureFlagService,GdcService,HierarchicalConfigService,LcmService,MetadataService,ModelService,NotificationService,OutputStageService,ProcessService,ProjectService,ProjectTemplateService,WarehouseService
Parent for GoodData services providing helpers for REST API calls and polling.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final org.springframework.web.client.RestTemplate -
Constructor Summary
ConstructorsConstructorDescriptionAbstractService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Sets RESTful HTTP Spring template. -
Method Summary
Modifier and TypeMethodDescriptionprotected final <T> TextractData(org.springframework.http.client.ClientHttpResponse response, Class<T> cls)
-
Field Details
-
restTemplate
protected final org.springframework.web.client.RestTemplate restTemplate -
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Details
-
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
-
-
Method Details
-
extractData
protected final <T> T extractData(org.springframework.http.client.ClientHttpResponse response, Class<T> cls) throws IOException - Throws:
IOException
-