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_BLOBSTORE_API
           
static String JCLOUDS_BLOBSTORE_CREDENTIAL
           
static String JCLOUDS_BLOBSTORE_ENDPOINT
           
static String JCLOUDS_BLOBSTORE_IDENTITY
           
static String JCLOUDS_BLOBSTORE_PROVIDER
           
static String JCLOUDS_COMPUTE_API
           
static String JCLOUDS_COMPUTE_CREDENTIAL
           
static String JCLOUDS_COMPUTE_ENDPOINT
           
static String JCLOUDS_COMPUTE_IDENTITY
           
static String JCLOUDS_COMPUTE_PROVIDER
           
static String JCLOUDS_PASSWORD
           
static String JCLOUDS_USER
           
 
Method Summary
static String getBlobStoreApi(String api)
          Returns the provider value and falls back to env if the specified value is null.
static String getBlobStoreCredential(String credential)
          Returns the credential value and falls back to env if the specified value is null.
static String getBlobStoreEndpoint(String endpoint)
          Returns the endpoint value and falls back to env if the specified value is null.
static String getBlobStoreIdentity(String identity)
          Returns the provider value and falls back to env if the specified value is null.
static String getBlobStoreProvider(String provider)
          Returns the provider value and falls back to env if the specified value is null.
static String getComputeApi(String api)
          Returns the provider value and falls back to env if the specified value is null.
static String getComputeCredential(String credential)
          Returns the credential value and falls back to env if the specified value is null.
static String getComputeEndpoint(String endpoint)
          Returns the endpoint value and falls back to env if the specified value is null.
static String getComputeIdentity(String identity)
          Returns the provider value and falls back to env if the specified value is null.
static String getComputeProvider(String provider)
          Returns the provider value and falls back to env if the specified value is null.
static String getPassword(String password)
          Returns the password value and falls back to env if the specified value is null.
static String getUser(String user)
          Returns the user 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_COMPUTE_PROVIDER

public static final String JCLOUDS_COMPUTE_PROVIDER
See Also:
Constant Field Values

JCLOUDS_COMPUTE_API

public static final String JCLOUDS_COMPUTE_API
See Also:
Constant Field Values

JCLOUDS_COMPUTE_IDENTITY

public static final String JCLOUDS_COMPUTE_IDENTITY
See Also:
Constant Field Values

JCLOUDS_COMPUTE_CREDENTIAL

public static final String JCLOUDS_COMPUTE_CREDENTIAL
See Also:
Constant Field Values

JCLOUDS_COMPUTE_ENDPOINT

public static final String JCLOUDS_COMPUTE_ENDPOINT
See Also:
Constant Field Values

JCLOUDS_BLOBSTORE_PROVIDER

public static final String JCLOUDS_BLOBSTORE_PROVIDER
See Also:
Constant Field Values

JCLOUDS_BLOBSTORE_API

public static final String JCLOUDS_BLOBSTORE_API
See Also:
Constant Field Values

JCLOUDS_BLOBSTORE_IDENTITY

public static final String JCLOUDS_BLOBSTORE_IDENTITY
See Also:
Constant Field Values

JCLOUDS_BLOBSTORE_CREDENTIAL

public static final String JCLOUDS_BLOBSTORE_CREDENTIAL
See Also:
Constant Field Values

JCLOUDS_BLOBSTORE_ENDPOINT

public static final String JCLOUDS_BLOBSTORE_ENDPOINT
See Also:
Constant Field Values

JCLOUDS_USER

public static final String JCLOUDS_USER
See Also:
Constant Field Values

JCLOUDS_PASSWORD

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

getComputeProvider

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

Parameters:
provider -
Returns:

getComputeApi

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

Parameters:
api -
Returns:

getComputeIdentity

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

Parameters:
identity -
Returns:

getComputeCredential

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

Parameters:
credential -
Returns:

getComputeEndpoint

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

Parameters:
endpoint -
Returns:

getBlobStoreProvider

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

Parameters:
provider -
Returns:

getBlobStoreApi

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

Parameters:
api -
Returns:

getBlobStoreIdentity

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

Parameters:
identity -
Returns:

getBlobStoreCredential

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

Parameters:
credential -
Returns:

getBlobStoreEndpoint

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

Parameters:
endpoint -
Returns:

getUser

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

Parameters:
user -
Returns:

getPassword

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

Parameters:
password -
Returns:


Copyright © 2012. All Rights Reserved.