Package org.jclouds.rest.internal
Class UtilsImpl
- java.lang.Object
-
- org.jclouds.rest.internal.UtilsImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description 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 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 onid
of the resource with a namespace prefix (ex.Crypto
crypto()
DateService
date()
com.google.common.eventbus.EventBus
eventBus()
HttpClient
http()
com.google.inject.Injector
injector()
Json
json()
Logger.LoggerFactory
loggerFactory()
XMLParser
xml()
-
-
-
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:
loggerFactory
in interfaceUtils
-
injector
@Beta public com.google.inject.Injector injector()
-
credentialStore
public Map<String,Credentials> credentialStore()
Description copied from interface:Utils
retrieves a list of credentials for resources created within this context, keyed onid
of 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:
credentialStore
in interfaceUtils
- if the node id is
-
-