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 from both client and server perspectives.

From a server perspective, the server-side only write method supports writing one or more ResourceRegion's based on HTTP ranges specified in the request.

To read a Resource, use ResourceDecoder wrapped with DecoderHttpMessageReader.

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