Class ResourceInserter

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

    public class ResourceInserter
    extends SingleBodyInserter<org.springframework.core.io.Resource>
    The resource inserter.
    Author:
    Christian Bremer
    • Constructor Detail

      • ResourceInserter

        public ResourceInserter()
    • Method Detail

      • mapBody

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

        protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> insert​(org.springframework.core.io.Resource 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.springframework.core.io.Resource>
        Parameters:
        body - the body
        requestBodyUriSpec - the request body uri spec
        Returns:
        the request headers uri spec