Interface FormDataController


  • public interface FormDataController
    The form data controller interface.
    Author:
    Christian Bremer
    • 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 value
        lastValue - the last value
        data - the data
        Returns:
        the result