Class CustomApacheHttpClient
java.lang.Object
io.camunda.connector.http.base.client.apache.CustomApacheHttpClient
- All Implemented Interfaces:
HttpClient
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomApacheHttpClientcreate(org.apache.hc.client5.http.impl.classic.HttpClientBuilder httpClientBuilder) Creates a new instance ofCustomApacheHttpClientwith the givenHttpClientBuilder.execute(HttpCommonRequest request, boolean remoteExecutionEnabled) Converts the givenHttpCommonRequestto an ApacheClassicHttpRequestand executes it.static CustomApacheHttpClientReturns the default instance ofCustomApacheHttpClient.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.connector.http.base.client.HttpClient
execute
-
Field Details
-
DEFAULT
-
-
Method Details
-
getDefault
Returns the default instance ofCustomApacheHttpClient. The default instance is configured with aHttpClientBuilderthat has aPoolingHttpClientConnectionManagerwith a maximum ofInteger.MAX_VALUEconnections.- Returns:
- the default instance of
CustomApacheHttpClient
-
create
public static CustomApacheHttpClient create(org.apache.hc.client5.http.impl.classic.HttpClientBuilder httpClientBuilder) Creates a new instance ofCustomApacheHttpClientwith the givenHttpClientBuilder. Use this method if you want to customize theHttpClientBuilder. SeegetDefault()for the default instance.- Parameters:
httpClientBuilder- theHttpClientBuilderto use- Returns:
- a new instance of
CustomApacheHttpClient - See Also:
-
execute
Converts the givenHttpCommonRequestto an ApacheClassicHttpRequestand executes it.- Specified by:
executein interfaceHttpClient- Parameters:
request- the request to executeremoteExecutionEnabled- whether to use the internal Google Function to execute the request remotely- Returns:
- the
HttpCommonResult
-