org.jclouds.softlayer.handlers
Class SoftLayerErrorHandler

java.lang.Object
  extended by org.jclouds.softlayer.handlers.SoftLayerErrorHandler
All Implemented Interfaces:
HttpErrorHandler

@Singleton
public class SoftLayerErrorHandler
extends Object
implements HttpErrorHandler

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

Author:
Adrian Cole

Field Summary
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
SoftLayerErrorHandler()
           
 
Method Summary
 void handleError(HttpCommand command, HttpResponse response)
           
 String parseMessage(HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLayerErrorHandler

public SoftLayerErrorHandler()
Method Detail

handleError

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

parseMessage

public String parseMessage(HttpResponse response)


Copyright © 2009-2011 jclouds. All Rights Reserved.