Class ResourceHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Resource>
org.springframework.http.converter.ResourceHttpMessageConverter
All Implemented Interfaces:
HttpMessageConverter<Resource>

public class ResourceHttpMessageConverter extends AbstractHttpMessageConverter<Resource>
Implementation of HttpMessageConverter that can read/write Resources and supports byte range requests.

By default, this converter can read all media types. The MediaTypeFactory is used to determine the Content-Type of written resources.

Since:
3.0.2
Author:
Arjen Poutsma, Juergen Hoeller, Kazuki Shimizu