Class MessageMD5ChecksumHandler

  • All Implemented Interfaces:
    RequestHandler

    public class MessageMD5ChecksumHandler
    extends AbstractRequestHandler
    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 Detail

      • MessageMD5ChecksumHandler

        public MessageMD5ChecksumHandler()
    • Method Detail

      • afterResponse

        public void afterResponse​(Request<?> request,
                                  Object response,
                                  TimingInfo timingInfo)
        Description copied from interface: RequestHandler
        Runs any additional processing logic on the specified request (after is has been executed by the client runtime).
        Specified by:
        afterResponse in interface RequestHandler
        Overrides:
        afterResponse in class AbstractRequestHandler
        Parameters:
        request - The low level request being processed.
        response - The response generated from the specified request.
        timingInfo - Timing information on the request's processing.