org.jclouds.atmos.handlers
Class ParseAtmosErrorFromXmlContent

java.lang.Object
  extended by org.jclouds.atmos.handlers.ParseAtmosErrorFromXmlContent
All Implemented Interfaces:
HttpErrorHandler

@Singleton
public class ParseAtmosErrorFromXmlContent
extends Object
implements HttpErrorHandler

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

Author:
Adrian Cole
See Also:
AtmosError

Field Summary
static Pattern DIRECTORY_KEY_PATH
           
static Pattern DIRECTORY_PATH
           
protected  Logger logger
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
ParseAtmosErrorFromXmlContent(AtmosUtils utils)
           
 
Method Summary
 void handleError(HttpCommand command, HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger

DIRECTORY_PATH

public static final Pattern DIRECTORY_PATH

DIRECTORY_KEY_PATH

public static final Pattern DIRECTORY_KEY_PATH
Constructor Detail

ParseAtmosErrorFromXmlContent

@Inject
public ParseAtmosErrorFromXmlContent(AtmosUtils utils)
Method Detail

handleError

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


Copyright © 2009-2011 jclouds. All Rights Reserved.