Tag Archives: Java

GZip RestTemplate

This weekend I created a small application that could gather information from the DISCOGS website using a RESTFul webservice they so very kindly provided. While I already had some previous experience using the RestTemplate provided by Spring I figured it would be a good idea to start there.

As with most of things IT related it didn’t all go according to plan. The RestTemplate I used didn’t support the gzip stream that was returned by the REST service published by Discogs. So how to fix this? There are two ways. Read more »