Class FunctionController
java.lang.Object
org.springframework.cloud.function.web.mvc.FunctionController
@Component
@EnableConfigurationProperties(FunctionHttpProperties.class)
public class FunctionController
extends Object
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidform(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) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> postStream(org.springframework.web.context.request.WebRequest request, String body)
-
Constructor Details
-
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
-
put
-
delete
@DeleteMapping(path="/**") @ResponseStatus(NO_CONTENT) public void delete(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)
-