Interface ValueController

  • All Known Implementing Classes:
    ValueControllerImpl

    public interface ValueController
    The value controller.
    Author:
    Christian Bremer
    • Method Detail

      • getStringValue

        @GetMapping
        org.reactivestreams.Publisher<String> getStringValue()
        Gets string value.
        Returns:
        the string value
      • getJsonValues

        @GetMapping(path="/api/value",
                    produces="application/json")
        reactor.core.publisher.Flux<Map<String,​Object>> getJsonValues()
        Gets json values.
        Returns:
        the json values
      • putStringValue

        @PutMapping(path="/api/value/{name}",
                    produces="text/plain",
                    consumes="text/plain")
        reactor.core.publisher.Mono<String> putStringValue​(@PathVariable("name")
                                                           String name,
                                                           @RequestBody
                                                           String payload)
        Put string value mono.
        Parameters:
        name - the name
        payload - the payload
        Returns:
        the mono
      • patchStringValue

        @PatchMapping(path="/api/value/{name}",
                      consumes="text/plain")
        reactor.core.publisher.Mono<Void> patchStringValue​(@PathVariable("name")
                                                           String name,
                                                           @RequestParam(name="suffix")
                                                           String suffix,
                                                           @RequestBody
                                                           String payload)
        Patch string value mono.
        Parameters:
        name - the name
        suffix - the suffix
        payload - the payload
        Returns:
        the mono
      • postValue

        @PostMapping(path="/api/value/{name}",
                     consumes="application/json",
                     produces="application/json")
        reactor.core.publisher.Mono<Map<String,​Object>> postValue​(@PathVariable("name")
                                                                        String name,
                                                                        @RequestHeader
                                                                        org.springframework.util.MultiValueMap<String,​String> headers,
                                                                        @CookieValue(name="sweet")
                                                                        String cookie,
                                                                        @RequestParam
                                                                        Map<String,​Object> requestParams,
                                                                        @RequestBody
                                                                        Map<String,​Object> payload)
        Post value mono.
        Parameters:
        name - the name
        headers - the headers
        cookie - the cookie
        requestParams - the request params
        payload - the payload
        Returns:
        the mono
      • deleteValue

        @DeleteMapping(path="/api/value/{name}",
                       produces="application/json")
        reactor.core.publisher.Mono<Boolean> deleteValue​(@PathVariable("name")
                                                         String name)
        Delete value mono.
        Parameters:
        name - the name
        Returns:
        the mono