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 java.util.Map<java.lang.String,java.lang.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, readMono
public ResourceHttpMessageReader()
public ResourceHttpMessageReader(ResourceDecoder resourceDecoder)
protected java.util.Map<java.lang.String,java.lang.Object> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
DecoderHttpMessageReader
HttpMessageDecoder
.getReadHints
in class DecoderHttpMessageReader<Resource>