spring-framework / org.springframework.http.codec.multipart / MultipartHttpMessageReader

MultipartHttpMessageReader

open class MultipartHttpMessageReader : HttpMessageReader<MultiValueMap<String, Part>>

HttpMessageReader for reading "multipart/form-data" requests into a MultiValueMap<String, Part>.

Note that this reader depends on access to an HttpMessageReader<Part> for the actual parsing of multipart content. The purpose of this reader is to collect the parts into a map.

Author
Rossen Stoyanchev

Since
5.0

Constructors

<init>

MultipartHttpMessageReader(partReader: HttpMessageReader<Part>)

Functions

canRead

open fun canRead(elementType: ResolvableType, mediaType: MediaType): Boolean

getReadableMediaTypes

open fun getReadableMediaTypes(): MutableList<MediaType>

read

open fun read(elementType: ResolvableType, message: ReactiveHttpInputMessage, hints: MutableMap<String, Any>): Flux<MultiValueMap<String, Part>>

readMono

open fun readMono(elementType: ResolvableType, inputMessage: ReactiveHttpInputMessage, hints: MutableMap<String, Any>): Mono<MultiValueMap<String, Part>>