SPR-5782 - BufferedImageHttpMessageConverter

This commit is contained in:
Arjen Poutsma
2009-05-25 11:52:43 +00:00
parent 51f0fc07fa
commit 3a1c88f059
2 changed files with 6 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.client.support.HttpAccessor;
import org.springframework.http.converter.BufferedImageHttpMessageConverter;
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.HttpMessageConverter;
@@ -94,7 +95,8 @@ public class RestTemplate extends HttpAccessor implements RestOperations {
private HttpMessageConverter<?>[] messageConverters =
new HttpMessageConverter[]{new ByteArrayHttpMessageConverter(), new StringHttpMessageConverter(),
new FormHttpMessageConverter(), new SourceHttpMessageConverter()};
new FormHttpMessageConverter(), new SourceHttpMessageConverter(),
new BufferedImageHttpMessageConverter()};
private ResponseErrorHandler errorHandler = new DefaultResponseErrorHandler();