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 ifS3Configuration.chunkedEncodingEnabled()
is configured and equals tofalse
, if so, then it installs an instance ofS3DisableChunkEncodingAuthSchemeProvider
wrapping the configuredS3AuthSchemeProvider
that setsAwsV4FamilyHttpSigner.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 Summary
Constructors Constructor Description S3DisableChunkEncodingIfConfiguredPlugin(SdkClientConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureClient(SdkServiceClientConfiguration.Builder config)
-
-
-
Constructor Detail
-
S3DisableChunkEncodingIfConfiguredPlugin
public S3DisableChunkEncodingIfConfiguredPlugin(SdkClientConfiguration config)
-
-
Method Detail
-
configureClient
public void configureClient(SdkServiceClientConfiguration.Builder config)
- Specified by:
configureClient
in interfaceSdkPlugin
-
-