org.jclouds.openstack.swift.handlers
Class ParseSwiftErrorFromHttpResponse

java.lang.Object
  extended by org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse
All Implemented Interfaces:
HttpErrorHandler

public class ParseSwiftErrorFromHttpResponse
extends Object
implements HttpErrorHandler

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

Author:
Adrian Cole

Field Summary
static Pattern CONTAINER_KEY_PATH
           
static Pattern CONTAINER_PATH
           
protected  Logger logger
           
static String PREFIX
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
ParseSwiftErrorFromHttpResponse()
           
 
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

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

CONTAINER_PATH

public static final Pattern CONTAINER_PATH

CONTAINER_KEY_PATH

public static final Pattern CONTAINER_KEY_PATH
Constructor Detail

ParseSwiftErrorFromHttpResponse

public ParseSwiftErrorFromHttpResponse()
Method Detail

handleError

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


Copyright © 2009-2011 jclouds. All Rights Reserved.