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
     
  • Method Summary

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FunctionController

      public FunctionController()
  • Method Details

    • 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)