org.jclouds.http.handlers
Class DelegatingErrorHandler

java.lang.Object
  extended by org.jclouds.http.handlers.DelegatingErrorHandler
All Implemented Interfaces:
HttpErrorHandler

@Singleton
public class DelegatingErrorHandler
extends Object
implements HttpErrorHandler

Delegates to HttpErrorHandlers who are annotated according to the response codes they relate to.

Author:
Adrian Cole

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

Method Detail

handleError

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

getRedirectionHandler

public HttpErrorHandler getRedirectionHandler()

getClientErrorHandler

public HttpErrorHandler getClientErrorHandler()

getServerErrorHandler

public HttpErrorHandler getServerErrorHandler()


Copyright © 2009-2012 jclouds. All Rights Reserved.