Class ControllerImpl
- java.lang.Object
-
- org.bremersee.apiclient.webflux.spring.boot.autoconfigure.app.ControllerImpl
-
- All Implemented Interfaces:
ControllerApi
@RestController public class ControllerImpl extends Object implements ControllerApi
The controller.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ControllerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Map<String,Object>>
getPage(int page, int size, List<String> sort)
Gets page.reactor.core.publisher.Mono<String>
postData(reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> data)
Post data mono.reactor.core.publisher.Mono<String>
postParts(org.springframework.http.codec.multipart.FormFieldPart stringPart)
Post parts mono.reactor.core.publisher.Mono<String>
postPublisher(org.reactivestreams.Publisher<String> publisher)
Post publisher mono.reactor.core.publisher.Mono<String>
postResource(org.springframework.core.io.Resource resource)
Post resource mono.reactor.core.publisher.Mono<Map<String,Object>>
putStringValue(String name, String payload)
Put string value mono.
-
-
-
Method Detail
-
postData
public reactor.core.publisher.Mono<String> postData(reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> data)
Description copied from interface:ControllerApi
Post data mono.- Specified by:
postData
in interfaceControllerApi
- Parameters:
data
- the data- Returns:
- the mono
-
postParts
public reactor.core.publisher.Mono<String> postParts(org.springframework.http.codec.multipart.FormFieldPart stringPart)
Description copied from interface:ControllerApi
Post parts mono.- Specified by:
postParts
in interfaceControllerApi
- Parameters:
stringPart
- the string part- Returns:
- the mono
-
postPublisher
public reactor.core.publisher.Mono<String> postPublisher(org.reactivestreams.Publisher<String> publisher)
Description copied from interface:ControllerApi
Post publisher mono.- Specified by:
postPublisher
in interfaceControllerApi
- Parameters:
publisher
- the publisher- Returns:
- the mono
-
postResource
public reactor.core.publisher.Mono<String> postResource(org.springframework.core.io.Resource resource)
Description copied from interface:ControllerApi
Post resource mono.- Specified by:
postResource
in interfaceControllerApi
- Parameters:
resource
- the resource- Returns:
- the mono
-
putStringValue
public reactor.core.publisher.Mono<Map<String,Object>> putStringValue(String name, String payload)
Description copied from interface:ControllerApi
Put string value mono.- Specified by:
putStringValue
in interfaceControllerApi
- Parameters:
name
- the namepayload
- the payload- Returns:
- the mono
-
getPage
@GetMapping(path="/page", produces="application/json") public reactor.core.publisher.Mono<Map<String,Object>> getPage(@RequestParam("page") int page, @RequestParam("size") int size, @RequestParam("sort") List<String> sort)
Gets page.- Parameters:
page
- the pagesize
- the sizesort
- the sort- Returns:
- the page
-
-