Interface ValueController
-
- All Known Implementing Classes:
ValueControllerImpl
public interface ValueController
The value controller.- Author:
- Christian Bremer
-
-
Field Summary
Fields Modifier and Type Field Description static List<Map<String,Object>>
JSON_VALUES
The Json values.static String
STRING_VALUE
The constant STRING_VALUE.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Boolean>
deleteValue(String name)
Delete value mono.reactor.core.publisher.Flux<Map<String,Object>>
getJsonValues()
Gets json values.org.reactivestreams.Publisher<String>
getStringValue()
Gets string value.reactor.core.publisher.Mono<Void>
patchStringValue(String name, String suffix, String payload)
Patch string value mono.reactor.core.publisher.Mono<Map<String,Object>>
postValue(String name, org.springframework.util.MultiValueMap<String,String> headers, String cookie, Map<String,Object> requestParams, Map<String,Object> payload)
Post value mono.reactor.core.publisher.Mono<String>
putStringValue(String name, String payload)
Put string value mono.
-
-
-
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 namepayload
- 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 namesuffix
- the suffixpayload
- 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 nameheaders
- the headerscookie
- the cookierequestParams
- the request paramspayload
- the payload- Returns:
- the mono
-
-