Class HttpChecksumValidationInterceptor
- java.lang.Object
-
- software.amazon.awssdk.core.internal.interceptor.HttpChecksumValidationInterceptor
-
- All Implemented Interfaces:
ExecutionInterceptor
public final class HttpChecksumValidationInterceptor extends Object implements ExecutionInterceptor
Interceptor to intercepts Sync and Async responses. The Http Checksum is computed and validated with the one that is passed in the header of the response.
-
-
Constructor Summary
Constructors Constructor Description HttpChecksumValidationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.reactivestreams.Publisher<ByteBuffer>>
modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes)
Modify theSdkHttpFullRequest
before it is unmarshalled into anSdkResponse
.Optional<InputStream>
modifyHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes)
Modify theSdkHttpFullRequest
before it is unmarshalled into anSdkResponse
.-
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, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyRequest, modifyResponse, onExecutionFailure
-
-
-
-
Method Detail
-
modifyHttpResponseContent
public Optional<InputStream> modifyHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes)
Description copied from interface:ExecutionInterceptor
Modify theSdkHttpFullRequest
before it is unmarshalled into anSdkResponse
.Note: Unlike many other lifecycle methods, this one may be invoked multiple times. If the
RetryPolicy
determines the error code returned by the service is retriable, this will be invoked for each response returned by the service.- Specified by:
modifyHttpResponseContent
in interfaceExecutionInterceptor
- Parameters:
context
- The current state of the execution, including the SDK and HTTP requests and the current HTTP response.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used to give data to future lifecycle methods.- Returns:
- The potentially-modified HTTP response that should be given to the unmarshaller. Must not be null.
-
modifyAsyncHttpResponseContent
public Optional<org.reactivestreams.Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes)
Description copied from interface:ExecutionInterceptor
Modify theSdkHttpFullRequest
before it is unmarshalled into anSdkResponse
.Note: Unlike many other lifecycle methods, this one may be invoked multiple times. If the
RetryPolicy
determines the error code returned by the service is retriable, this will be invoked for each response returned by the service.- Specified by:
modifyAsyncHttpResponseContent
in interfaceExecutionInterceptor
- Parameters:
context
- The current state of the execution, including the SDK and HTTP requests and the current HTTP response.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used to give data to future lifecycle methods.- Returns:
- The potentially-modified HTTP response that should be given to the unmarshaller. Must not be null.
-
-