org.jclouds.aws.handlers
Class ParseAWSErrorFromXmlContent

java.lang.Object
  extended by org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent
All Implemented Interfaces:
HttpErrorHandler
Direct Known Subclasses:
ParseS3ErrorFromXmlContent

@Singleton
public class ParseAWSErrorFromXmlContent
extends Object
implements HttpErrorHandler

This will parse and set an appropriate exception on the command object.

Author:
Adrian Cole
See Also:
AWSError

Field Summary
protected  Logger logger
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
ParseAWSErrorFromXmlContent(AWSUtils utils)
           
 
Method Summary
 void handleError(HttpCommand command, HttpResponse response)
           
protected  Exception refineException(HttpCommand command, HttpResponse response, Exception exception, AWSError error, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
Constructor Detail

ParseAWSErrorFromXmlContent

@Inject
public ParseAWSErrorFromXmlContent(AWSUtils utils)
Method Detail

handleError

public void handleError(HttpCommand command,
                        HttpResponse response)
Specified by:
handleError in interface HttpErrorHandler

refineException

protected Exception refineException(HttpCommand command,
                                    HttpResponse response,
                                    Exception exception,
                                    AWSError error,
                                    String message)


Copyright © 2009-2012 jclouds. All Rights Reserved.