Class FunctionController
- java.lang.Object
-
- org.springframework.cloud.function.web.flux.FunctionController
-
@Component public class FunctionController extends Object
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky
-
-
Constructor Summary
Constructors Constructor Description FunctionController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>
form(org.springframework.web.server.ServerWebExchange request)
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>
get(org.springframework.web.server.ServerWebExchange request)
org.reactivestreams.Publisher<?>
getStream(org.springframework.web.server.ServerWebExchange request)
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>
multipart(org.springframework.web.server.ServerWebExchange request)
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>
post(org.springframework.web.server.ServerWebExchange request, String body)
org.reactivestreams.Publisher<?>
postStream(org.springframework.web.server.ServerWebExchange request, reactor.core.publisher.Flux<String> body)
-
-
-
Method Detail
-
form
@PostMapping(path="/**", consumes="application/x-www-form-urlencoded") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> form(org.springframework.web.server.ServerWebExchange request)
-
multipart
@PostMapping(path="/**", consumes="multipart/form-data") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> multipart(org.springframework.web.server.ServerWebExchange request)
-
post
@PostMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> post(org.springframework.web.server.ServerWebExchange request, @RequestBody(required=false) String body)
-
postStream
@PostMapping(path="/**", produces="text/event-stream") @ResponseBody public org.reactivestreams.Publisher<?> postStream(org.springframework.web.server.ServerWebExchange request, @RequestBody(required=false) reactor.core.publisher.Flux<String> body)
-
getStream
@GetMapping(path="/**", produces="text/event-stream") @ResponseBody public org.reactivestreams.Publisher<?> getStream(org.springframework.web.server.ServerWebExchange request)
-
get
@GetMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> get(org.springframework.web.server.ServerWebExchange request)
-
-