Class SpringWebClientFlowableHttpClient
java.lang.Object
org.flowable.http.common.impl.spring.reactive.SpringWebClientFlowableHttpClient
- All Implemented Interfaces:
FlowableAsyncHttpClient,FlowableHttpClient
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Durationprotected final org.slf4j.Loggerprotected final org.springframework.web.reactive.function.client.WebClient -
Constructor Summary
ConstructorsConstructorDescriptionSpringWebClientFlowableHttpClient(org.springframework.web.reactive.function.client.WebClient.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionprotected URIprotected org.springframework.web.reactive.function.client.WebClientdetermineWebClient(HttpRequest requestInfo) prepareRequest(HttpRequest requestInfo) protected voidsetHeaders(org.springframework.web.reactive.function.client.WebClient.RequestHeadersSpec<?> base, HttpHeaders headers) protected voidsetRequestEntity(HttpRequest requestInfo, org.springframework.web.reactive.function.client.WebClient.RequestBodySpec requestBodySpec) protected HttpHeaderstoFlowableHeaders(org.springframework.http.HttpHeaders httpHeaders) protected HttpResponsetoFlowableHttpResponse(org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> response)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
webClient
protected final org.springframework.web.reactive.function.client.WebClient webClient -
initialRequestTimeout
-
-
Constructor Details
-
SpringWebClientFlowableHttpClient
-
SpringWebClientFlowableHttpClient
public SpringWebClientFlowableHttpClient(org.springframework.web.reactive.function.client.WebClient.Builder builder)
-
-
Method Details
-
prepareRequest
- Specified by:
prepareRequestin interfaceFlowableAsyncHttpClient- Specified by:
prepareRequestin interfaceFlowableHttpClient
-
determineWebClient
protected org.springframework.web.reactive.function.client.WebClient determineWebClient(HttpRequest requestInfo) -
createUri
- 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
-