Class ControllerImpl

  • All Implemented Interfaces:
    ControllerApi

    @RestController
    public class ControllerImpl
    extends Object
    implements ControllerApi
    The controller.
    Author:
    Christian Bremer
    • Constructor Detail

      • ControllerImpl

        public ControllerImpl()
    • 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 interface ControllerApi
        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 interface ControllerApi
        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 interface ControllerApi
        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 interface ControllerApi
        Parameters:
        resource - the resource
        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 page
        size - the size
        sort - the sort
        Returns:
        the page