spring-framework / org.springframework.web.reactive.result.method.annotation / RequestPartMethodArgumentResolver

RequestPartMethodArgumentResolver

open class RequestPartMethodArgumentResolver : AbstractMessageReaderArgumentResolver

Resolver for @RequestPart arguments where the named part is decoded much like an @RequestBody argument but based on the content of an individual part instead. The arguments may be wrapped with a reactive type for a single value (e.g. Reactor Mono, RxJava Single).

This resolver also supports arguments of type Part which may be wrapped with are reactive type for a single or multiple values.

Author
Rossen Stoyanchev

Since
5.0

Constructors

<init>

RequestPartMethodArgumentResolver(readers: MutableList<HttpMessageReader<*>>, registry: ReactiveAdapterRegistry)

Functions

resolveArgument

open fun resolveArgument(parameter: MethodParameter, bindingContext: BindingContext, exchange: ServerWebExchange): Mono<Any>

supportsParameter

open fun supportsParameter(parameter: MethodParameter): Boolean