Class FormDataControllerImpl
- java.lang.Object
-
- org.bremersee.apiclient.webflux.app.FormDataControllerImpl
-
@RestController public class FormDataControllerImpl extends Object
The form data controller implementation.In a WebFlux application, form data is accessed via
ServerWebExchange.getFormData()
. For this reason the controller can't implement the interface, because it's signature differs from this implementation.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description FormDataControllerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Map<String,Object>>
postFormData(String headerValue, String lastValue, org.springframework.web.server.ServerWebExchange exchange)
Post form data mono.
-
-
-
Method Detail
-
postFormData
@RequestMapping(path="/upload", method=POST, consumes="application/x-www-form-urlencoded", produces="application/json") public reactor.core.publisher.Mono<Map<String,Object>> postFormData(@RequestHeader(name="x-ok-flag") String headerValue, @CookieValue(name="last") String lastValue, org.springframework.web.server.ServerWebExchange exchange)
Post form data mono.- Parameters:
headerValue
- the header valuelastValue
- the last valueexchange
- the exchange- Returns:
- the mono
-
-