Class ResourceHttpMessageConverter

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

public class ResourceHttpMessageConverter extends AbstractHttpMessageConverter<org.springframework.core.io.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