Class DataBuffersInserter

  • All Implemented Interfaces:
    BiFunction<Invocation,​org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,​org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>, RequestBodyInserter

    public class DataBuffersInserter
    extends SingleBodyInserter<org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>>
    The data buffers inserter.
    Author:
    Christian Bremer
    • Constructor Detail

      • DataBuffersInserter

        public DataBuffersInserter()
    • Method Detail

      • isPossibleBodyValue

        protected boolean isPossibleBodyValue​(InvocationParameter invocationParameter)
        Description copied from class: AbstractRequestBodyInserter
        Is possible body value boolean.
        Specified by:
        isPossibleBodyValue in class SingleBodyInserter<org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>>
        Parameters:
        invocationParameter - the invocation parameter
        Returns:
        the boolean
      • mapBody

        protected org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> mapBody​(InvocationParameter invocationParameter)
        Description copied from class: SingleBodyInserter
        Map body.
        Specified by:
        mapBody in class SingleBodyInserter<org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>>
        Parameters:
        invocationParameter - the invocation parameter
        Returns:
        the t
      • insert

        protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> insert​(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer> body,
                                                                                                             org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
        Description copied from class: SingleBodyInserter
        Insert request headers uri spec.
        Specified by:
        insert in class SingleBodyInserter<org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>>
        Parameters:
        body - the body
        requestBodyUriSpec - the request body uri spec
        Returns:
        the request headers uri spec