Interface FormDataController
-
public interface FormDataController
The form data controller interface.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>
addOk(org.springframework.util.MultiValueMap<String,String> form)
Post form data.reactor.core.publisher.Mono<Map<String,Object>>
upload(String headerValue, String lastValue, org.springframework.util.MultiValueMap<String,?> data)
Upload form data with header and cookie..
-
-
-
Method Detail
-
addOk
@PostMapping(path="/api/oks", produces="text/plain", consumes="application/x-www-form-urlencoded") reactor.core.publisher.Mono<String> addOk(@RequestBody org.springframework.util.MultiValueMap<String,String> form)
Post form data.- Parameters:
form
- the form- Returns:
- the result
-
upload
@RequestMapping(path="/upload", method=POST, consumes="application/x-www-form-urlencoded", produces="application/json") reactor.core.publisher.Mono<Map<String,Object>> upload(@RequestHeader(name="x-ok-flag") String headerValue, @CookieValue(name="last") String lastValue, @RequestBody org.springframework.util.MultiValueMap<String,?> data)
Upload form data with header and cookie..- Parameters:
headerValue
- the x header valuelastValue
- the last valuedata
- the data- Returns:
- the result
-
-