Class FunctionController

java.lang.Object
org.springframework.cloud.function.web.mvc.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
    form(org.springframework.web.context.request.WebRequest request)
     
    get(org.springframework.web.context.request.WebRequest request)
     
    org.reactivestreams.Publisher<?>
    getStream(org.springframework.web.context.request.WebRequest request)
     
    post(org.springframework.web.context.request.WebRequest request, String body)
     
    reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>>
    postStream(org.springframework.web.context.request.WebRequest request, 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","multipart/form-data"}) @ResponseBody public Object form(org.springframework.web.context.request.WebRequest request)
    • postStream

      @PostMapping(path="/**", produces="text/event-stream") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> postStream(org.springframework.web.context.request.WebRequest request, @RequestBody(required=false) String body)
    • getStream

      @GetMapping(path="/**", produces="text/event-stream") @ResponseBody public org.reactivestreams.Publisher<?> getStream(org.springframework.web.context.request.WebRequest request)
    • post

      @PostMapping(path="/**") @ResponseBody public Object post(org.springframework.web.context.request.WebRequest request, @RequestBody(required=false) String body)
    • get

      @GetMapping(path="/**") @ResponseBody public Object get(org.springframework.web.context.request.WebRequest request)