org.jclouds.karaf.utils
Class EnvHelper

java.lang.Object
  extended by org.jclouds.karaf.utils.EnvHelper

public class EnvHelper
extends Object


Field Summary
static String JCLOUDS_CREDENTIAL
           
static String JCLOUDS_ENDPOINT
           
static String JCLOUDS_IDENTITY
           
static String JCLOUDS_PROVIDER
           
 
Method Summary
static String getCredential(String credential)
          Returns the credential value and falls back to env if the specified value is null.
static String getEndpoint(String endpoint)
          Returns the endpoint value and falls back to env if the specified value is null.
static String getIdentity(String identity)
          Returns the provider value and falls back to env if the specified value is null.
static String getProvider(String provider)
          Returns the provider value and falls back to env if the specified value is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JCLOUDS_PROVIDER

public static final String JCLOUDS_PROVIDER
See Also:
Constant Field Values

JCLOUDS_IDENTITY

public static final String JCLOUDS_IDENTITY
See Also:
Constant Field Values

JCLOUDS_CREDENTIAL

public static final String JCLOUDS_CREDENTIAL
See Also:
Constant Field Values

JCLOUDS_ENDPOINT

public static final String JCLOUDS_ENDPOINT
See Also:
Constant Field Values
Method Detail

getProvider

public static String getProvider(String provider)
Returns the provider value and falls back to env if the specified value is null.

Parameters:
provider -
Returns:

getIdentity

public static String getIdentity(String identity)
Returns the provider value and falls back to env if the specified value is null.

Parameters:
identity -
Returns:

getCredential

public static String getCredential(String credential)
Returns the credential value and falls back to env if the specified value is null.

Parameters:
credential -
Returns:

getEndpoint

public static String getEndpoint(String endpoint)
Returns the endpoint value and falls back to env if the specified value is null.

Parameters:
endpoint -
Returns:


Copyright © 2012. All Rights Reserved.