Package org.jclouds.rest.internal
Class UtilsImpl
- java.lang.Object
-
- org.jclouds.rest.internal.UtilsImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUtilsImpl(com.google.inject.Injector injector, Json json, XMLParser xml, HttpClient simpleClient, Crypto encryption, DateService date, com.google.common.eventbus.EventBus eventBus, Map<String,Credentials> credentialStore, Logger.LoggerFactory loggerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Credentials>credentialStore()retrieves a list of credentials for resources created within this context, keyed onidof the resource with a namespace prefix (ex.Cryptocrypto()DateServicedate()com.google.common.eventbus.EventBuseventBus()HttpClienthttp()com.google.inject.Injectorinjector()Jsonjson()Logger.LoggerFactoryloggerFactory()XMLParserxml()
-
-
-
Constructor Detail
-
UtilsImpl
@Inject protected UtilsImpl(com.google.inject.Injector injector, Json json, XMLParser xml, HttpClient simpleClient, Crypto encryption, DateService date, com.google.common.eventbus.EventBus eventBus, Map<String,Credentials> credentialStore, Logger.LoggerFactory loggerFactory)
-
-
Method Detail
-
date
public DateService date()
-
http
public HttpClient http()
-
eventBus
public com.google.common.eventbus.EventBus eventBus()
-
loggerFactory
public Logger.LoggerFactory loggerFactory()
- Specified by:
loggerFactoryin interfaceUtils
-
injector
@Beta public com.google.inject.Injector injector()
-
credentialStore
public Map<String,Credentials> credentialStore()
Description copied from interface:Utilsretrieves a list of credentials for resources created within this context, keyed onidof the resource with a namespace prefix (ex.node#. We are testing this approach for resources such as compute nodes, where you could access this externally.accessing credentials for a node
the key is in the formnode#id.- if the node id is
8, then the key will benode#8 - if the node id is
us-east-1/i-asdfdas, then the key will benode#us-east-1/i-asdfdas - if the node id is
http://cloud/instances/1, then the key will benode#http://cloud/instances/1
- Specified by:
credentialStorein interfaceUtils
- if the node id is
-
-