public class AsyncChecksumValidationInterceptor extends Object implements ExecutionInterceptor
Constructor and Description |
---|
AsyncChecksumValidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterUnmarshalling(Context.AfterUnmarshalling context,
ExecutionAttributes executionAttributes)
Read the
SdkResponse as it was returned by the unmarshaller, before it is modified by other interceptors. |
Optional<AsyncRequestBody> |
modifyAsyncHttpContent(Context.ModifyHttpRequest context,
ExecutionAttributes executionAttributes) |
Optional<org.reactivestreams.Publisher<ByteBuffer>> |
modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context,
ExecutionAttributes executionAttributes)
Modify the
SdkHttpFullRequest before it is unmarshalled into an SdkResponse . |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterExecution, afterMarshalling, afterTransmission, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
public Optional<AsyncRequestBody> modifyAsyncHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes)
modifyAsyncHttpContent
in interface ExecutionInterceptor
public Optional<org.reactivestreams.Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context, ExecutionAttributes executionAttributes)
ExecutionInterceptor
SdkHttpFullRequest
before it is unmarshalled into an SdkResponse
.
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.
modifyAsyncHttpResponseContent
in interface ExecutionInterceptor
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.public void afterUnmarshalling(Context.AfterUnmarshalling context, ExecutionAttributes executionAttributes)
ExecutionInterceptor
SdkResponse
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.afterUnmarshalling
in interface ExecutionInterceptor
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.