Class SpringWebClientFlowableHttpClient

java.lang.Object
org.flowable.http.common.impl.spring.reactive.SpringWebClientFlowableHttpClient
All Implemented Interfaces:
FlowableAsyncHttpClient, FlowableHttpClient

public class SpringWebClientFlowableHttpClient extends Object implements FlowableAsyncHttpClient
Author:
Filip Hrisafov
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • webClient

      protected final org.springframework.web.reactive.function.client.WebClient webClient
    • initialRequestTimeout

      protected final Duration initialRequestTimeout
  • Constructor Details

    • SpringWebClientFlowableHttpClient

      public SpringWebClientFlowableHttpClient(HttpClientConfig config)
    • SpringWebClientFlowableHttpClient

      public SpringWebClientFlowableHttpClient(org.springframework.web.reactive.function.client.WebClient.Builder builder)
  • Method Details

    • prepareRequest

      public AsyncExecutableHttpRequest prepareRequest(HttpRequest requestInfo)
      Specified by:
      prepareRequest in interface FlowableAsyncHttpClient
      Specified by:
      prepareRequest in interface FlowableHttpClient
    • determineWebClient

      protected org.springframework.web.reactive.function.client.WebClient determineWebClient(HttpRequest requestInfo)
    • createUri

      protected URI createUri(String url) throws URISyntaxException
      Throws:
      URISyntaxException
    • setRequestEntity

      protected void setRequestEntity(HttpRequest requestInfo, org.springframework.web.reactive.function.client.WebClient.RequestBodySpec requestBodySpec)
    • setHeaders

      protected void setHeaders(org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec<?> base, HttpHeaders headers)
    • toFlowableHttpResponse

      protected HttpResponse toFlowableHttpResponse(org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> response)
    • toFlowableHeaders

      protected HttpHeaders toFlowableHeaders(org.springframework.http.HttpHeaders httpHeaders)