public final class HttpChecksumValidationInterceptor extends Object implements ExecutionInterceptor
Constructor and Description |
---|
HttpChecksumValidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
Optional<org.reactivestreams.Publisher<ByteBuffer>> |
modifyAsyncHttpResponseContent(Context.ModifyHttpResponse context,
ExecutionAttributes executionAttributes)
Modify the
SdkHttpFullRequest before it is unmarshalled into an SdkResponse . |
Optional<InputStream> |
modifyHttpResponseContent(Context.ModifyHttpResponse context,
ExecutionAttributes executionAttributes)
Modify the
SdkHttpFullRequest before it is unmarshalled into an SdkResponse . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyRequest, modifyResponse, onExecutionFailure
public Optional<InputStream> modifyHttpResponseContent(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.
modifyHttpResponseContent
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 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.Copyright © 2023. All rights reserved.