Class MessageMD5ChecksumInterceptor
java.lang.Object
software.amazon.awssdk.services.sqs.internal.MessageMD5ChecksumInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
SQS operations on sending and receiving messages will return the MD5 digest of the message body.
This custom request handler will verify that the message is correctly received by SQS, by
comparing the returned MD5 with the calculation according to the original request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterExecution(Context.AfterExecution context, ExecutionAttributes executionAttributes) Read the finalizedSdkResponseas it will be returned by the client invocation.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
afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
-
Constructor Details
-
MessageMD5ChecksumInterceptor
public MessageMD5ChecksumInterceptor()
-
-
Method Details
-
afterExecution
Description copied from interface:ExecutionInterceptorRead the finalizedSdkResponseas it will be returned by the client invocation.- Specified by:
afterExecutionin interfaceExecutionInterceptor- Parameters:
context- The current state of the execution, including the SDK and HTTP requests as well as the SDK and 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.
-