@Component public class FunctionController extends Object
| Constructor and Description |
|---|
FunctionController(FunctionInspector inspector) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Function<reactor.core.publisher.Flux<?>,reactor.core.publisher.Flux<?>> function,
Supplier<reactor.core.publisher.Flux<?>> supplier,
String argument) |
org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<?>> |
post(Function<reactor.core.publisher.Flux<?>,reactor.core.publisher.Flux<?>> function,
Consumer<reactor.core.publisher.Flux<?>> consumer,
Boolean single,
FluxRequest<?> body) |
void |
setDebug(boolean debug) |
public FunctionController(FunctionInspector inspector)
public void setDebug(boolean debug)
@PostMapping(path="/**")
@ResponseBody
public org.springframework.http.ResponseEntity<reactor.core.publisher.Flux<?>> post(@RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.function")
Function<reactor.core.publisher.Flux<?>,reactor.core.publisher.Flux<?>> function,
@RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.consumer")
Consumer<reactor.core.publisher.Flux<?>> consumer,
@RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.input_single")
Boolean single,
@RequestBody
FluxRequest<?> body)
@GetMapping(path="/**") @ResponseBody public Object get(@RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.function") Function<reactor.core.publisher.Flux<?>,reactor.core.publisher.Flux<?>> function, @RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.supplier") Supplier<reactor.core.publisher.Flux<?>> supplier, @RequestAttribute(required=false,name="org.springframework.cloud.function.web.flux.constants.WebRequestConstants.argument") String argument)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.