Class CloudStackHttpApiModule

java.lang.Object
com.google.inject.AbstractModule
org.jclouds.rest.config.RestModule
org.jclouds.rest.config.HttpApiModule<CloudStackApi>
org.jclouds.cloudstack.config.CloudStackHttpApiModule
All Implemented Interfaces:
com.google.inject.Module

public class CloudStackHttpApiModule extends org.jclouds.rest.config.HttpApiModule<CloudStackApi>
Configures the cloudstack connection.
  • Constructor Details

    • CloudStackHttpApiModule

      public CloudStackHttpApiModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in class org.jclouds.rest.config.HttpApiModule<CloudStackApi>
    • installLocations

      protected void installLocations()
      Overrides:
      installLocations in class org.jclouds.rest.config.RestModule
    • bindErrorHandlers

      protected void bindErrorHandlers()
      Overrides:
      bindErrorHandlers in class org.jclouds.rest.config.HttpApiModule<CloudStackApi>
    • authenticationFilterForCredentialType

      @Provides protected final AuthenticationFilter authenticationFilterForCredentialType(CredentialType credentialType, AddSessionKeyAndJSessionIdToRequest addSessionKeyAndJSessionIdToRequest, QuerySigner querySigner)
      we use the type of credentials specified at login to determine which way we want to filter the request.
      for ex, if we are getting passwords, we know we will need to login/logout. Otherwise we are signing requests.
    • provideLoginResponseCache

      @Provides protected final com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,LoginResponse> provideLoginResponseCache(LoginWithPasswordCredentials getLoginResponse, int seconds)
    • provideLoginResponseSupplier

      @Provides protected final com.google.common.base.Supplier<LoginResponse> provideLoginResponseSupplier(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,LoginResponse> cache, com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)