Class FluxController


  • @RestController
    @RequestMapping("/complex")
    public class FluxController
    extends java.lang.Object
    Flux RestController.
    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()  
      • Methods inherited from class java.lang.Object

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

      • FluxController

        public FluxController()
    • 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)