类 MultipartWriterSupport
java.lang.Object
cn.taketoday.http.codec.LoggingCodecSupport
cn.taketoday.http.codec.multipart.MultipartWriterSupport
Support class for multipart HTTP message writers.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
字段概要
字段从类继承的字段 cn.taketoday.http.codec.LoggingCodecSupport
logger -
构造器概要
构造器限定符构造器说明protectedMultipartWriterSupport(List<MediaType> supportedMediaTypes) Constructor with the list of supported media types. -
方法概要
修饰符和类型方法说明protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer>generateBoundaryLine(byte[] boundary, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer>generateLastLine(byte[] boundary, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) protected byte[]Generate a multipart boundary.protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer>generateNewLine(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer>generatePartHeaders(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) Return the configured charset for part headers.protected MediaTypegetMultipartMediaType(MediaType mediaType, byte[] boundary) Prepare theMediaTypeto use by adding "boundary" and "charset" parameters to the givenmediaTypeor "mulitpart/form-data" otherwise by default.voidsetCharset(Charset charset) Set the character set to use for part headers such as "Content-Disposition" (and its filename parameter).从类继承的方法 cn.taketoday.http.codec.LoggingCodecSupport
isEnableLoggingRequestDetails, setEnableLoggingRequestDetails
-
字段详细资料
-
DEFAULT_CHARSET
THe default charset used by the writer. -
supportedMediaTypes
-
charset
-
-
构造器详细资料
-
MultipartWriterSupport
Constructor with the list of supported media types.
-
-
方法详细资料
-
getCharset
Return the configured charset for part headers. -
setCharset
Set the character set to use for part headers such as "Content-Disposition" (and its filename parameter).By default this is set to "UTF-8". If changed from this default, the "Content-Type" header will have a "charset" parameter that specifies the character set used.
-
getWritableMediaTypes
-
generateMultipartBoundary
protected byte[] generateMultipartBoundary()Generate a multipart boundary.By default delegates to
MimeTypeUtils.generateMultipartBoundary(). -
getMultipartMediaType
Prepare theMediaTypeto use by adding "boundary" and "charset" parameters to the givenmediaTypeor "mulitpart/form-data" otherwise by default. -
generateBoundaryLine
protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer> generateBoundaryLine(byte[] boundary, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
generateNewLine
protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer> generateNewLine(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
generateLastLine
protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer> generateLastLine(byte[] boundary, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
generatePartHeaders
protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer> generatePartHeaders(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory)
-