Class AsyncChecksumValidationInterceptor
java.lang.Object
software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
public final class AsyncChecksumValidationInterceptor
extends Object
implements ExecutionInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshalling(Context.AfterUnmarshalling context, ExecutionAttributes executionAttributes) Read theSdkResponseas it was returned by the unmarshaller, before it is modified by other interceptors.modifyAsyncHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) Optional<org.reactivestreams.Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes) Modify theSdkHttpFullRequestbefore it is unmarshalled into anSdkResponse.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterExecution, afterMarshalling, afterTransmission, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
-
Constructor Details
-
AsyncChecksumValidationInterceptor
public AsyncChecksumValidationInterceptor()
-
-
Method Details
-
modifyAsyncHttpContent
public Optional<AsyncRequestBody> modifyAsyncHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) - Specified by:
modifyAsyncHttpContentin interfaceExecutionInterceptor
-
modifyAsyncHttpResponseContent
public Optional<org.reactivestreams.Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptorModify theSdkHttpFullRequestbefore it is unmarshalled into anSdkResponse.Note: Unlike many other lifecycle methods, this one may be invoked multiple times. If the
RetryPolicydetermines the error code returned by the service is retriable, this will be invoked for each response returned by the service.- Specified by:
modifyAsyncHttpResponseContentin 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.
-
afterUnmarshalling
public void afterUnmarshalling(Context.AfterUnmarshalling context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptorRead theSdkResponseas it was returned by the unmarshaller, before it is modified by other interceptors.ExecutionInterceptor.afterExecution(software.amazon.awssdk.core.interceptor.Context.AfterExecution, software.amazon.awssdk.core.interceptor.ExecutionAttributes)should be used in most circumstances for reading the SDK response because it includes modifications made by other interceptors.- Specified by:
afterUnmarshallingin interfaceExecutionInterceptor- Parameters:
context- The current state of the execution, including the SDK and HTTP requests and the 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.
-