Class S3DisableChunkEncodingIfConfiguredPlugin

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

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.