Class S3DisableChunkEncodingIfConfiguredPlugin

java.lang.Object
software.amazon.awssdk.services.s3.internal.plugins.S3DisableChunkEncodingIfConfiguredPlugin
All Implemented Interfaces:
AutoCloseable, SdkPlugin, SdkAutoCloseable

@SdkInternalApi public final class S3DisableChunkEncodingIfConfiguredPlugin extends Object implements SdkPlugin
Internal plugin that uses the check if S3Configuration.chunkedEncodingEnabled() is configured and equals to false, if so, then it installs an instance of S3DisableChunkEncodingAuthSchemeProvider wrapping the configured S3AuthSchemeProvider that sets AwsV4FamilyHttpSigner.CHUNK_ENCODING_ENABLED to false.

This pre SRA logic was implemented before using an interceptor but now requires wrapping the S3AuthSchemeProvider for it to work.

  • Constructor Details

    • S3DisableChunkEncodingIfConfiguredPlugin

      public S3DisableChunkEncodingIfConfiguredPlugin(SdkClientConfiguration config)
  • Method Details

    • configureClient

      public void configureClient(SdkServiceClientConfiguration.Builder config)
      Description copied from interface: SdkPlugin
      Modifies the provided client configuration.

      This method is invoked by the SDK to allow the plugin to customize the client configuration. Implementations can modify any aspect of the configuration exposed through the builder, including override configuration, endpoints, and authentication schemes.

      Specified by:
      configureClient in interface SdkPlugin
      Parameters:
      config - the configuration builder to modify