Class KeystoneHttpApiModule

java.lang.Object
com.google.inject.AbstractModule
org.jclouds.rest.config.RestModule
org.jclouds.rest.config.HttpApiModule<KeystoneApi>
org.jclouds.openstack.keystone.v2_0.config.KeystoneHttpApiModule
All Implemented Interfaces:
com.google.inject.Module

public class KeystoneHttpApiModule extends HttpApiModule<KeystoneApi>
Configures the Keystone API.
  • Constructor Details

    • KeystoneHttpApiModule

      public KeystoneHttpApiModule()
  • Method Details

    • namespaceAliasBinder

      public static com.google.inject.multibindings.MapBinder<URI,URI> namespaceAliasBinder(com.google.inject.Binder binder)
    • configure

      protected void configure()
      Overrides:
      configure in class HttpApiModule<KeystoneApi>
    • provideExtensionsByRegion

      @Provides @Singleton public final com.google.common.cache.LoadingCache<String,Set<? extends Extension>> provideExtensionsByRegion(jakarta.inject.Provider<KeystoneApi> keystoneApi)
    • bindErrorHandlers

      protected void bindErrorHandlers()
      Description copied from class: HttpApiModule
      overrides this to change the default error handlers for the http engine ex.
       bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(ParseAWSErrorFromXmlContent.class);
       bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(ParseAWSErrorFromXmlContent.class);
       bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ParseAWSErrorFromXmlContent.class);
       
      Overrides:
      bindErrorHandlers in class HttpApiModule<KeystoneApi>