Class FluxController
- java.lang.Object
-
- net.officefloor.tutorial.springfluxapp.FluxController
-
@RestController @RequestMapping("/complex") public class FluxController extends java.lang.Object
FluxRestController
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FluxController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.String>
header(java.lang.String header)
reactor.core.publisher.Mono<java.lang.String>
inject()
reactor.core.publisher.Mono<java.lang.String>
pathParam(java.lang.String parameter)
reactor.core.publisher.Mono<java.lang.String>
post(java.lang.String requestBody)
reactor.core.publisher.Mono<java.lang.String>
requestParam(java.lang.String parameter)
reactor.core.publisher.Mono<java.lang.String>
status()
-
-
-
Method Detail
-
inject
@GetMapping("/inject") public reactor.core.publisher.Mono<java.lang.String> inject()
-
status
@GetMapping("/status") @ResponseStatus(CREATED) public reactor.core.publisher.Mono<java.lang.String> status()
-
pathParam
@GetMapping("/path/{param}") public reactor.core.publisher.Mono<java.lang.String> pathParam(@PathVariable("param") java.lang.String parameter)
-
requestParam
@GetMapping(path="/query", params="param") public reactor.core.publisher.Mono<java.lang.String> requestParam(@RequestParam("param") java.lang.String parameter)
-
header
@GetMapping(path="/header", headers="header") public reactor.core.publisher.Mono<java.lang.String> header(@RequestHeader("header") java.lang.String header)
-
post
@PostMapping public reactor.core.publisher.Mono<java.lang.String> post(@RequestBody java.lang.String requestBody)
-
-