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 elementType,
ReactiveHttpInputMessage message)
Get additional hints for decoding based on the input HTTP message.
|
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, readMono
public ResourceHttpMessageReader()
public ResourceHttpMessageReader(ResourceDecoder resourceDecoder)
protected Map<String,Object> getReadHints(ResolvableType elementType, ReactiveHttpInputMessage message)
DecoderHttpMessageReader
getReadHints
in class DecoderHttpMessageReader<Resource>
protected Map<String,Object> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
DecoderHttpMessageReader
HttpMessageDecoder
.getReadHints
in class DecoderHttpMessageReader<Resource>