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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterUnmarshalling
(Context.AfterUnmarshalling context, ExecutionAttributes executionAttributes) Read theSdkResponse
as 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 theSdkHttpFullRequest
before it is unmarshalled into anSdkResponse
.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
modifyAsyncHttpContent
in interfaceExecutionInterceptor
-
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.
-
afterUnmarshalling
public void afterUnmarshalling(Context.AfterUnmarshalling context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptor
Read theSdkResponse
as 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:
afterUnmarshalling
in 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.
-