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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyToClient(software.amazon.awssdk.http.apache.ApacheHttpClient client)
    Replace the "apacheHttpRequestFactory" field in the provided client with this patched implementation
    org.apache.http.client.methods.HttpRequestBase
    create(software.amazon.awssdk.http.HttpExecuteRequest request, software.amazon.awssdk.http.apache.internal.ApacheHttpRequestConfig requestConfig)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class software.amazon.awssdk.http.apache.internal.impl.ApacheHttpRequestFactory