public class MultipartWriterSupport extends LoggingCodecSupport
| 修飾子と型 | フィールドと説明 |
|---|---|
static CharsetSE | DEFAULT_CHARSET ライターが使用するデフォルトの文字セット。 |
logger| 修飾子 | コンストラクターと説明 |
|---|---|
protected | MultipartWriterSupport(ListSE<MediaType> supportedMediaTypes) サポートされているメディア型のリストを持つコンストラクター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | canWrite(ResolvableType elementType, MediaType mediaType) |
protected reactor.core.publisher.Mono<DataBuffer> | generateBoundaryLine(byte[] boundary, DataBufferFactory bufferFactory) |
protected reactor.core.publisher.Mono<DataBuffer> | generateLastLine(byte[] boundary, DataBufferFactory bufferFactory) |
protected byte[] | generateMultipartBoundary() マルチパート境界を生成します。 |
protected reactor.core.publisher.Mono<DataBuffer> | generateNewLine(DataBufferFactory bufferFactory) |
protected reactor.core.publisher.Mono<DataBuffer> | generatePartHeaders(HttpHeaders headers, DataBufferFactory bufferFactory) |
CharsetSE | getCharset() パーツヘッダーの構成された文字セットを返します。 |
protected MediaType | getMultipartMediaType(MediaType mediaType, byte[] boundary) 指定された mediaType またはデフォルトで "mulitpart/form-data" に "boundary" および "charset" パラメーターを追加して、使用する MediaType を準備します。 |
ListSE<MediaType> | getWritableMediaTypes() |
void | setCharset(CharsetSE charset) "Content-Disposition" (およびそのファイル名パラメーター)などのパーツヘッダーに使用する文字セットを設定します。 |
isEnableLoggingRequestDetails, setEnableLoggingRequestDetailscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static final CharsetSE DEFAULT_CHARSET
public CharsetSE getCharset()
public void setCharset(CharsetSE charset)
デフォルトでは、これは "UTF-8" に設定されています。このデフォルトから変更された場合、"Content-Type" ヘッダーには、使用される文字セットを指定する "charset" パラメーターが含まれます。
public boolean canWrite(ResolvableType elementType, @Nullable MediaType mediaType)
protected byte[] generateMultipartBoundary()
デフォルトでは MimeTypeUtils.generateMultipartBoundary() に委譲します。
protected MediaType getMultipartMediaType(@Nullable MediaType mediaType, byte[] boundary)
mediaType またはデフォルトで "mulitpart/form-data" に "boundary" および "charset" パラメーターを追加して、使用する MediaType を準備します。protected reactor.core.publisher.Mono<DataBuffer> generateBoundaryLine(byte[] boundary, DataBufferFactory bufferFactory)
protected reactor.core.publisher.Mono<DataBuffer> generateNewLine(DataBufferFactory bufferFactory)
protected reactor.core.publisher.Mono<DataBuffer> generateLastLine(byte[] boundary, DataBufferFactory bufferFactory)
protected reactor.core.publisher.Mono<DataBuffer> generatePartHeaders(HttpHeaders headers, DataBufferFactory bufferFactory)