Top Description Constructors Methods
org.springframework.http.codec

public Class ResourceHttpMessageReader

extends DecoderHttpMessageReader<Resource>
Class Inheritance
Imports
java.util.Map, org.springframework.core.ResolvableType, org.springframework.core.codec.Hints, .ResourceDecoder, org.springframework.core.io.Resource, org.springframework.http.ReactiveHttpInputMessage, org.springframework.http.server.reactive.ServerHttpRequest, .ServerHttpResponse, org.springframework.util.StringUtils

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.
Author
Rossen Stoyanchev
Since
5.2

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected Map<String, Object>
getReadHints(ResolvableType elementType, ReactiveHttpInputMessage message)

Overrides org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

Get additional hints for decoding based on the input HTTP message.
protected Map<String, Object>
getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)

Overrides org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

Get additional hints for decoding for example based on the server request or annotations from controller method parameters.
Inherited from org.springframework.http.codec.DecoderHttpMessageReader:
canReadgetContentTypegetDecodergetReadableMediaTypesgetReadableMediaTypesreadreadreadMonoreadMono

Constructor Detail

ResourceHttpMessageReaderback to summary
public ResourceHttpMessageReader()
ResourceHttpMessageReaderback to summary
public ResourceHttpMessageReader(ResourceDecoder resourceDecoder)

Method Detail

getReadHintsback to summary
protected Map<String, Object> getReadHints(ResolvableType elementType, ReactiveHttpInputMessage message)

Overrides org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

Doc from org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

Get additional hints for decoding based on the input HTTP message.

Annotations
@Override
getReadHintsback to summary
protected Map<String, Object> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)

Overrides org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

Doc from org.springframework.http.codec.DecoderHttpMessageReader.getReadHints.

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 of HttpMessageDecoder.

Annotations
@Override