org.jclouds.azure.storage.handlers
Class ParseAzureStorageErrorFromXmlContent

java.lang.Object
  extended by org.jclouds.azure.storage.handlers.ParseAzureStorageErrorFromXmlContent
All Implemented Interfaces:
HttpErrorHandler
Direct Known Subclasses:
ParseAzureBlobErrorFromXmlContent

public class ParseAzureStorageErrorFromXmlContent
extends Object
implements HttpErrorHandler

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

Author:
Adrian Cole
See Also:
AzureStorageError

Field Summary
static Pattern CONTAINER_KEY_PATH
           
static Pattern CONTAINER_PATH
           
protected  Logger logger
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
ParseAzureStorageErrorFromXmlContent(AzureStorageUtils utils)
           
 
Method Summary
 void handleError(HttpCommand command, HttpResponse response)
           
protected  Exception refineException(HttpCommand command, HttpResponse response, Exception exception, AzureStorageError 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

CONTAINER_PATH

public static final Pattern CONTAINER_PATH

CONTAINER_KEY_PATH

public static final Pattern CONTAINER_KEY_PATH
Constructor Detail

ParseAzureStorageErrorFromXmlContent

@Inject
public ParseAzureStorageErrorFromXmlContent(AzureStorageUtils 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,
                                    AzureStorageError error,
                                    String message)


Copyright © 2009-2011 jclouds. All Rights Reserved.