Class DeleteWithEntityApacheHttpRequestFactory
java.lang.Object
software.amazon.awssdk.http.apache.internal.impl.ApacheHttpRequestFactory
com.atlassian.confluence.plugins.opensearch.DeleteWithEntityApacheHttpRequestFactory
public class DeleteWithEntityApacheHttpRequestFactory
extends software.amazon.awssdk.http.apache.internal.impl.ApacheHttpRequestFactory
Patches the
ApacheHttpRequestFactory
from AWS SDK to allow sending HTTP DELETE requests with entity.
This is a workaround for https://github.com/opensearch-project/opensearch-java/issues/521.- Since:
- 9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyToClient
(software.amazon.awssdk.http.apache.ApacheHttpClient client) Replace the "apacheHttpRequestFactory" field in the provided client with this patched implementationorg.apache.http.client.methods.HttpRequestBase
create
(software.amazon.awssdk.http.HttpExecuteRequest request, software.amazon.awssdk.http.apache.internal.ApacheHttpRequestConfig requestConfig)
-
Constructor Details
-
DeleteWithEntityApacheHttpRequestFactory
public DeleteWithEntityApacheHttpRequestFactory()
-
-
Method Details
-
applyToClient
public static void applyToClient(software.amazon.awssdk.http.apache.ApacheHttpClient client) Replace the "apacheHttpRequestFactory" field in the provided client with this patched implementation- Parameters:
client
-
-
create
public org.apache.http.client.methods.HttpRequestBase create(software.amazon.awssdk.http.HttpExecuteRequest request, software.amazon.awssdk.http.apache.internal.ApacheHttpRequestConfig requestConfig) - Overrides:
create
in classsoftware.amazon.awssdk.http.apache.internal.impl.ApacheHttpRequestFactory
-