类 ResourceHttpMessageReader
- java.lang.Object
- org.springframework.http.codec.DecoderHttpMessageReader<Resource>
- org.springframework.http.codec.ResourceHttpMessageReader
- 所有已实现的接口:
HttpMessageReader<Resource>
public class ResourceHttpMessageReader extends DecoderHttpMessageReader<Resource>
HttpMessageReader
that wraps and delegates to aResourceDecoder
that extracts the filename from the"Content-Disposition"
header, if available, and passes it as theResourceDecoder.FILENAME_HINT
.- 从以下版本开始:
- 5.2
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 ResourceHttpMessageReader()
ResourceHttpMessageReader(ResourceDecoder resourceDecoder)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.http.codec.DecoderHttpMessageReader
canRead, getContentType, getDecoder, getReadableMediaTypes, read, read, readMono, readMono
构造器详细资料
ResourceHttpMessageReader
public ResourceHttpMessageReader()
ResourceHttpMessageReader
public ResourceHttpMessageReader(ResourceDecoder resourceDecoder)
方法详细资料
getReadHints
protected Map<String,Object> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
从类复制的说明:DecoderHttpMessageReader
Get additional hints for decoding for example based on the server request or annotations from controller method parameters. By default, delegate to the decoder if it is an instance ofHttpMessageDecoder
.