com.amazonaws.handlers
Class AbstractRequestHandler

java.lang.Object
  extended by com.amazonaws.handlers.AbstractRequestHandler
All Implemented Interfaces:
RequestHandler
Direct Known Subclasses:
QueueUrlHandler

public abstract class AbstractRequestHandler
extends Object
implements RequestHandler

Simple implementation of RequestHandler to stub out required methods.


Constructor Summary
AbstractRequestHandler()
           
 
Method Summary
 void afterError(Request<?> request, Exception e)
          Runs any additional processing logic on a request after it has failed.
 void afterResponse(Request<?> request, Object response, com.amazonaws.util.TimingInfo timingInfo)
          Runs any additional processing logic on the specified request (after is has been executed by the client runtime).
 void beforeRequest(Request<?> request)
          Runs any additional processing logic on the specified request (before it is executed by the client runtime).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestHandler

public AbstractRequestHandler()
Method Detail

beforeRequest

public void beforeRequest(Request<?> request)
Description copied from interface: RequestHandler
Runs any additional processing logic on the specified request (before it is executed by the client runtime).

Specified by:
beforeRequest in interface RequestHandler
Parameters:
request - The low level request being processed.

afterResponse

public void afterResponse(Request<?> request,
                          Object response,
                          com.amazonaws.util.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
Parameters:
request - The low level request being processed.
response - The response generated from the specified request.
timingInfo - Timing information on the request's processing.

afterError

public void afterError(Request<?> request,
                       Exception e)
Description copied from interface: RequestHandler
Runs any additional processing logic on a request after it has failed.

Specified by:
afterError in interface RequestHandler
Parameters:
request - The request that generated an error.
e - The error that resulted from executing the request.


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