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 toHttpErrorHandlerswho 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 HttpErrorHandlergetClientErrorHandler()HttpErrorHandlergetRedirectionHandler()HttpErrorHandlergetServerErrorHandler()voidhandleError(HttpCommand command, HttpResponse response)
-
-
-
Method Detail
-
handleError
public void handleError(HttpCommand command, HttpResponse response)
- Specified by:
handleErrorin interfaceHttpErrorHandler
-
getRedirectionHandler
public HttpErrorHandler getRedirectionHandler()
-
getClientErrorHandler
public HttpErrorHandler getClientErrorHandler()
-
getServerErrorHandler
public HttpErrorHandler getServerErrorHandler()
-
-