com.amazonaws.services.sqs
Class MessageMD5ChecksumHandler

java.lang.Object
  extended by com.amazonaws.handlers.AbstractRequestHandler
      extended by com.amazonaws.services.sqs.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 Summary
MessageMD5ChecksumHandler()
           
 
Method Summary
 void afterResponse(Request<?> request, java.lang.Object response, TimingInfo timingInfo)
          Runs any additional processing logic on the specified request (after is has been executed by the client runtime).
 
Methods inherited from class com.amazonaws.handlers.AbstractRequestHandler
afterError, beforeRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageMD5ChecksumHandler

public MessageMD5ChecksumHandler()
Method Detail

afterResponse

public void afterResponse(Request<?> request,
                          java.lang.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.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.