public class ResourceHttpMessageReader extends DecoderHttpMessageReader<Resource>
HttpMessageReader that wraps and delegates to a ResourceDecoder
that extracts the filename from the "Content-Disposition" header, if
available, and passes it as the ResourceDecoder.FILENAME_HINT.| Constructor and Description |
|---|
ResourceHttpMessageReader() |
ResourceHttpMessageReader(ResourceDecoder resourceDecoder) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getReadHints(ResolvableType actualType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response)
Get additional hints for decoding for example based on the server request
or annotations from controller method parameters.
|
canRead, getContentType, getDecoder, getReadableMediaTypes, read, read, readMono, readMonopublic ResourceHttpMessageReader()
public ResourceHttpMessageReader(ResourceDecoder resourceDecoder)
protected Map<String,Object> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
DecoderHttpMessageReaderHttpMessageDecoder.getReadHints in class DecoderHttpMessageReader<Resource>