Binds a request body to a Web route method parameter.
The type of the annotated parameter can be any of:
ByteBuf,Mono<ByteBuf>,Flux<ByteBuf>orPublisher<ByteBuf>to produce or consume raw data.String,Mono<String>,Flux<String>orPublisher<String>to produce or consume string data.T,Mono<T>,Flux<T>orPublisher<T>where typeTis the type of application resource to produce or consume data encoded or decoded based on the request content type.
Server Web routes also accept:
Mono<,Parameter>Flux<Parameter>orPublisher<Parameter>to consume URL encoded form data.Mono<T>,Flux<T>orPublisher<T>where typeTis a super type ofWebPartto consume multipart form data
Client Web route also accept:
Resourceto send resources as request body in which case the request content type can be automatically deduced from the resource.
An encoded payload is encoded or decoded using a MediaTypeConverter corresponding to the content type specified in the request.
This annotation can't be used in conjunction with other parameters that specifies the request body format such as @FormParam.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also: