Skip to content
Snippets Groups Projects
Commit fe277b46 authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

refactor(SolidifyRestClientService): reuse getResource implementation

parent 7e04c32f
No related branches found
No related tags found
1 merge request!331Mvo solidify rest client service
......@@ -161,12 +161,7 @@ public abstract class SolidifyRestClientService {
// *******************
public String getResource(String url) {
final RestTemplate restClt = this.getRestTemplate(HttpMethod.GET);
try {
return restClt.getForObject(url, String.class);
} catch (final HttpClientErrorException e) {
throw this.getSolidifyExceptionFromHttpClientErrorException(url, e);
}
return this.getResource(url, String.class);
}
public <T> List<T> getResourceList(String url, Class<T[]> clazz) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment