public class HttpChecksumRequiredInterceptor extends Object implements ExecutionInterceptor
This is NOT supported for asynchronous HTTP content, which is currently only used for streaming upload operations. If such operations are added in the future, we'll have to find a way to support them in a non-blocking manner. That will likely require interface changes of some sort, because it's not currently possible to do a non-blocking update to request headers.
Constructor and Description |
---|
HttpChecksumRequiredInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterMarshalling(Context.AfterMarshalling context,
ExecutionAttributes executionAttributes)
Read the marshalled HTTP request, before it is modified by other interceptors.
|
SdkHttpRequest |
modifyHttpRequest(Context.ModifyHttpRequest context,
ExecutionAttributes executionAttributes)
Modify the
SdkHttpFullRequest before it is sent to the service. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterExecution, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
public void afterMarshalling(Context.AfterMarshalling context, ExecutionAttributes executionAttributes)
ExecutionInterceptor
ExecutionInterceptor.beforeTransmission(software.amazon.awssdk.core.interceptor.Context.BeforeTransmission, software.amazon.awssdk.core.interceptor.ExecutionAttributes)
should be used
in most circumstances for reading the HTTP request because it includes modifications made by other interceptors.afterMarshalling
in interface ExecutionInterceptor
context
- The current state of the execution, including the SDK and unmodified HTTP request.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used topublic SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes)
ExecutionInterceptor
SdkHttpFullRequest
before it is sent to the service.modifyHttpRequest
in interface ExecutionInterceptor
context
- The current state of the execution, including the SDK and current HTTP request.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 © 2022. All rights reserved.