Class ResourceHttpMessageWriter

java.lang.Object
org.springframework.http.codec.ResourceHttpMessageWriter
All Implemented Interfaces:
HttpMessageWriter<Resource>

public class ResourceHttpMessageWriter extends Object implements HttpMessageWriter<Resource>
HttpMessageWriter that can write a Resource.

Also an implementation of HttpMessageWriter with support for writing one or more ResourceRegion's based on the HTTP ranges specified in the request.

For reading to a Resource, use ResourceDecoder wrapped with DecoderHttpMessageReader.

Since:
5.0
Author:
Arjen Poutsma, Brian Clozel, Rossen Stoyanchev
See Also: