クラス MultipartWriterSupport
java.lang.ObjectSE
org.springframework.http.codec.LoggingCodecSupport
org.springframework.http.codec.multipart.MultipartWriterSupport
マルチパート HTTP メッセージライターのサポートクラス。
- 導入:
- 5.3
- 作成者:
- Rossen Stoyanchev
フィールドサマリー
フィールドクラス org.springframework.http.codec.LoggingCodecSupport から継承されたフィールド
logger
コンストラクターのサマリー
コンストラクター修飾子コンストラクター説明protected
MultipartWriterSupport
(ListSE<MediaType> supportedMediaTypes) サポートされているメディア型のリストを持つコンストラクター。方法の概要
修飾子と型メソッド説明protected reactor.core.publisher.Mono<DataBuffer>
generateBoundaryLine
(byte[] boundary, DataBufferFactory bufferFactory) protected reactor.core.publisher.Mono<DataBuffer>
generateLastLine
(byte[] boundary, DataBufferFactory bufferFactory) protected byte[]
マルチパート境界を生成します。protected reactor.core.publisher.Mono<DataBuffer>
generateNewLine
(DataBufferFactory bufferFactory) protected reactor.core.publisher.Mono<DataBuffer>
generatePartHeaders
(HttpHeaders headers, DataBufferFactory bufferFactory) パーツヘッダーの構成された文字セットを返します。protected MediaType
getMultipartMediaType
(MediaType mediaType, byte[] boundary) 指定されたmediaType
または "multipart/form-data" に "boundary" パラメーターと "charset" パラメーターを追加することによって、使用するMediaType
を準備します。それ以外の場合はデフォルトで行われます。void
setCharset
(CharsetSE charset) "Content-Disposition" (およびそのファイル名パラメーター)などのパーツヘッダーに使用する文字セットを設定します。クラス org.springframework.http.codec.LoggingCodecSupport から継承されたメソッド
isEnableLoggingRequestDetails, setEnableLoggingRequestDetails
フィールドの詳細
DEFAULT_CHARSET
ライターが使用するデフォルトの文字セット。
コンストラクターの詳細
MultipartWriterSupport
サポートされているメディア型のリストを持つコンストラクター。
メソッドの詳細
getCharset
パーツヘッダーの構成された文字セットを返します。setCharset
"Content-Disposition" (およびそのファイル名パラメーター)などのパーツヘッダーに使用する文字セットを設定します。デフォルトでは、これは "UTF-8" に設定されています。このデフォルトから変更された場合、"Content-Type" ヘッダーには、使用される文字セットを指定する "charset" パラメーターが含まれます。
getWritableMediaTypes
generateMultipartBoundary
protected byte[] generateMultipartBoundary()マルチパート境界を生成します。デフォルトでは
MimeTypeUtils.generateMultipartBoundary()
に委譲します。getMultipartMediaType
指定されたmediaType
または "multipart/form-data" に "boundary" パラメーターと "charset" パラメーターを追加することによって、使用するMediaType
を準備します。それ以外の場合はデフォルトで行われます。generateBoundaryLine
protected reactor.core.publisher.Mono<DataBuffer> generateBoundaryLine(byte[] boundary, DataBufferFactory bufferFactory) generateNewLine
generateLastLine
protected reactor.core.publisher.Mono<DataBuffer> generateLastLine(byte[] boundary, DataBufferFactory bufferFactory) generatePartHeaders
protected reactor.core.publisher.Mono<DataBuffer> generatePartHeaders(HttpHeaders headers, DataBufferFactory bufferFactory)