Package org.jclouds.http.handlers
Class DelegatingErrorHandler
- java.lang.Object
-
- org.jclouds.http.handlers.DelegatingErrorHandler
-
- All Implemented Interfaces:
HttpErrorHandler
@Singleton public class DelegatingErrorHandler extends Object implements HttpErrorHandler
Delegates toHttpErrorHandlers
who are annotated according to the response codes they relate to.
-
-
Field Summary
-
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpErrorHandler
getClientErrorHandler()
HttpErrorHandler
getRedirectionHandler()
HttpErrorHandler
getServerErrorHandler()
void
handleError(HttpCommand command, HttpResponse response)
-
-
-
Method Detail
-
handleError
public void handleError(HttpCommand command, HttpResponse response)
- Specified by:
handleError
in interfaceHttpErrorHandler
-
getRedirectionHandler
public HttpErrorHandler getRedirectionHandler()
-
getClientErrorHandler
public HttpErrorHandler getClientErrorHandler()
-
getServerErrorHandler
public HttpErrorHandler getServerErrorHandler()
-
-