Interface ControllerTwo

  • All Known Implementing Classes:
    ControllerTwoImpl

    @RequestMapping("/some/base/path")
    public interface ControllerTwo
    Test controller two.
    Author:
    Christian Bremer
    • Method Detail

      • sayHello

        @RequestMapping(method=GET)
        reactor.core.publisher.Mono<String> sayHello​(@RequestParam(value="name",defaultValue="Tom")
                                                     String name)
        Say hello mono.
        Parameters:
        name - the name
        Returns:
        the mono
      • sayHelloTo

        @GetMapping("/greeting/{name}")
        reactor.core.publisher.Mono<String> sayHelloTo​(@PathVariable("name")
                                                       String name)
        Say hello to mono.
        Parameters:
        name - the name
        Returns:
        the mono
      • setName

        @PostMapping("/name")
        default reactor.core.publisher.Mono<String> setName​(@RequestBody(required=false)
                                                            String name)
        Sets name.
        Parameters:
        name - the name
        Returns:
        the name