> +public class PBHttpApiModule extends HttpApiModule<ProfitBricksApi> {
> +
> + @Override
> + protected void bindErrorHandlers() {
> +
> bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(ProfitBricksHttpErrorHandler.class);
> +
> bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(ProfitBricksHttpErrorHandler.class);
> +
> bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ProfitBricksHttpErrorHandler.class);
> + }
> +
> + @ConfiguresHttpCommandExecutorService
> + public static class PBHttpCommandExecutorServiceModule extends
> AbstractModule {
> +
> + @Override
> + protected void configure() {
> + install(new SSLModule());
> +
> bind(HttpCommandExecutorService.class).to(ResponseStatusFromPayloadHttpCommandExecutorService.class).in(
this looks familiar and scary simultaneously :) gotta love xml rpc. I will try
to think of another way to accomplish this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r19648628