Class EnableTrailingChecksumInterceptor
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor
-
- All Implemented Interfaces:
ExecutionInterceptor
public final class EnableTrailingChecksumInterceptor extends Object implements ExecutionInterceptor
-
-
Constructor Summary
Constructors Constructor Description EnableTrailingChecksumInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkHttpRequestmodifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes)Append trailing checksum header forGetObjectRequestif trailing checksum is enabled from config,ChecksumModeis disabled, and is not S3Express.SdkRequestmodifyRequest(Context.ModifyRequest context, ExecutionAttributes executionAttributes)EnableChecksumModeforGetObjectRequestif trailing checksum is enabled from config,ChecksumModeis disabled, and is S3Express.SdkResponsemodifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes)Subtract the contentLength ofGetObjectResponseif trailing checksums is enabled.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpResponse, modifyHttpResponseContent, onExecutionFailure
-
-
-
-
Method Detail
-
modifyRequest
public SdkRequest modifyRequest(Context.ModifyRequest context, ExecutionAttributes executionAttributes)
EnableChecksumModeforGetObjectRequestif trailing checksum is enabled from config,ChecksumModeis disabled, and is S3Express. TODO (s3express) - refactor to migrate out s3express specific code- Specified by:
modifyRequestin interfaceExecutionInterceptor
-
modifyHttpRequest
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes)
Append trailing checksum header forGetObjectRequestif trailing checksum is enabled from config,ChecksumModeis disabled, and is not S3Express.- Specified by:
modifyHttpRequestin interfaceExecutionInterceptor
-
modifyResponse
public SdkResponse modifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes)
Subtract the contentLength ofGetObjectResponseif trailing checksums is enabled.- Specified by:
modifyResponsein interfaceExecutionInterceptor
-
-