本文整理汇总了Java中org.jclouds.http.annotation.ClientError类的典型用法代码示例。如果您正苦于以下问题:Java ClientError类的具体用法?Java ClientError怎么用?Java ClientError使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ClientError类属于org.jclouds.http.annotation包,在下文中一共展示了ClientError类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: bindErrorHandlers
import org.jclouds.http.annotation.ClientError; //导入依赖的package包/类
@Override
protected void bindErrorHandlers() {
bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(DimensionDataCloudControllerErrorHandler.class);
bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(DimensionDataCloudControllerErrorHandler.class);
bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(DimensionDataCloudControllerErrorHandler.class);
}
示例2: bindRetryHandlers
import org.jclouds.http.annotation.ClientError; //导入依赖的package包/类
@Override
protected void bindRetryHandlers() {
bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(DimensionDataCloudControllerRetryHandler.class);
}
示例3: bindErrorHandlers
import org.jclouds.http.annotation.ClientError; //导入依赖的package包/类
@Override
protected void bindErrorHandlers() {
bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(BitbucketErrorHandler.class);
bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(BitbucketErrorHandler.class);
bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(BitbucketErrorHandler.class);
}
示例4: bindErrorHandlers
import org.jclouds.http.annotation.ClientError; //导入依赖的package包/类
@Override
protected void bindErrorHandlers() {
this.bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(OrionErrorHandler.class);
this.bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(OrionErrorHandler.class);
this.bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(OrionErrorHandler.class);
}