Package com.gooddata

Class AbstractService

    • Field Detail

      • restTemplate

        protected final org.springframework.web.client.RestTemplate restTemplate
      • mapper

        protected final com.fasterxml.jackson.databind.ObjectMapper mapper
    • 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 template
        settings - settings
      • AbstractService

        @Deprecated
        public AbstractService​(org.springframework.web.client.RestTemplate restTemplate)
        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