com.gooddata.gdc.GdcService Maven / Gradle / Ivy
/*
* Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.
*/
package com.gooddata.gdc;
import com.gooddata.AbstractService;
import com.gooddata.GoodDataException;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
/**
*/
public class GdcService extends AbstractService {
public GdcService(RestTemplate restTemplate) {
super(restTemplate);
}
public Gdc getGdc() {
try {
return restTemplate.getForObject(Gdc.URI, Gdc.class);
} catch (GoodDataException | RestClientException e) {
throw new GoodDataException("Unable to get gdc about", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy