クラス ResourceHttpMessageReader
java.lang.ObjectSE
org.springframework.http.codec.DecoderHttpMessageReader<Resource>
org.springframework.http.codec.ResourceHttpMessageReader
- 実装されたすべてのインターフェース:
HttpMessageReader<Resource>
使用可能な場合は
"Content-Disposition"
ヘッダーからファイル名を抽出し、それを ResourceDecoder.FILENAME_HINT
として渡す ResourceDecoder
にラップおよび委譲する HttpMessageReader
。- 導入:
- 5.2
- 作成者:
- Rossen Stoyanchev
コンストラクターのサマリー
コンストラクター方法の概要
修飾子と型メソッド説明getReadHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) たとえば、サーバーリクエストまたはコントローラーメソッドパラメーターからのアノテーションに基づいて、デコードの追加のヒントを取得します。getReadHints
(ResolvableType elementType, ReactiveHttpInputMessage message) 入力 HTTP メッセージに基づいてデコードするための追加のヒントを取得します。クラス org.springframework.http.codec.DecoderHttpMessageReader から継承されたメソッド
canRead, getContentType, getDecoder, getReadableMediaTypes, getReadableMediaTypes, read, read, readMono, readMono
コンストラクターの詳細
ResourceHttpMessageReader
public ResourceHttpMessageReader()ResourceHttpMessageReader
メソッドの詳細
getReadHints
protected MapSE<StringSE,ObjectSE> getReadHints(ResolvableType elementType, ReactiveHttpInputMessage message) クラスからコピーされた説明:DecoderHttpMessageReader
入力 HTTP メッセージに基づいてデコードするための追加のヒントを取得します。- オーバーライド:
- クラス
DecoderHttpMessageReader<Resource>
のgetReadHints
getReadHints
protected MapSE<StringSE,ObjectSE> getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) クラスからコピーされた説明:DecoderHttpMessageReader
たとえばサーバーリクエストやコントローラーメソッドパラメーターからのアノテーションに基づいて、デコードに関する追加のヒントを取得します。デフォルトでは、HttpMessageDecoder
のインスタンスである場合はデコーダーに委譲します。- オーバーライド:
- クラス
DecoderHttpMessageReader<Resource>
のgetReadHints