Class ApacheHttpComponents5FlowableHttpClient
java.lang.Object
org.flowable.http.common.impl.apache.client5.ApacheHttpComponents5FlowableHttpClient
- All Implemented Interfaces:
FlowableAsyncHttpClient
,FlowableHttpClient
public class ApacheHttpComponents5FlowableHttpClient
extends Object
implements FlowableAsyncHttpClient
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.hc.client5.http.async.HttpAsyncClient
protected boolean
protected int
protected int
protected final org.slf4j.Logger
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionApacheHttpComponents5FlowableHttpClient
(org.apache.hc.client5.http.async.HttpAsyncClient client, int socketTimeout, int connectTimeout, int connectionRequestTimeout) ApacheHttpComponents5FlowableHttpClient
(HttpClientConfig config, Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> clientBuilderCustomizer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected org.apache.hc.client5.http.config.RequestConfig
createRequestConfig
(HttpRequest request) protected URI
prepareRequest
(HttpRequest requestInfo) protected void
setHeaders
(org.apache.hc.core5.http.nio.support.AsyncRequestBuilder base, HttpHeaders headers) protected void
setRequestEntity
(HttpRequest requestInfo, org.apache.hc.core5.http.nio.support.AsyncRequestBuilder requestBase) protected HttpResponse
toFlowableHttpResponse
(org.apache.hc.client5.http.async.methods.SimpleHttpResponse response)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
client
protected org.apache.hc.client5.http.async.HttpAsyncClient client -
closeClient
protected boolean closeClient -
socketTimeout
protected int socketTimeout -
connectTimeout
protected int connectTimeout -
connectionRequestTimeout
protected int connectionRequestTimeout
-
-
Constructor Details
-
ApacheHttpComponents5FlowableHttpClient
-
ApacheHttpComponents5FlowableHttpClient
public ApacheHttpComponents5FlowableHttpClient(HttpClientConfig config, Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> clientBuilderCustomizer) -
ApacheHttpComponents5FlowableHttpClient
public ApacheHttpComponents5FlowableHttpClient(org.apache.hc.client5.http.async.HttpAsyncClient client, int socketTimeout, int connectTimeout, int connectionRequestTimeout)
-
-
Method Details
-
close
public void close() -
prepareRequest
- Specified by:
prepareRequest
in interfaceFlowableAsyncHttpClient
- Specified by:
prepareRequest
in interfaceFlowableHttpClient
-
createUri
- Throws:
URISyntaxException
-
setRequestEntity
protected void setRequestEntity(HttpRequest requestInfo, org.apache.hc.core5.http.nio.support.AsyncRequestBuilder requestBase) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
setHeaders
protected void setHeaders(org.apache.hc.core5.http.nio.support.AsyncRequestBuilder base, HttpHeaders headers) -
createRequestConfig
-
toFlowableHttpResponse
protected HttpResponse toFlowableHttpResponse(org.apache.hc.client5.http.async.methods.SimpleHttpResponse response)
-