public class BluemixUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PLAN_EXPERIMENTAL
The Constant PLAN_EXPERIMENTAL.
|
static String |
PLAN_FREE
The Constant PLAN_FREE.
|
static String |
PLAN_STANDARD
The Constant PLAN_STANDARD.
|
| Constructor and Description |
|---|
BluemixUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAPIKey(String serviceName)
Returns the apiKey from the VCAP_SERVICES or null if doesn't exists.
|
static String |
getAPIKey(String serviceName,
String plan)
Returns the apiKey from the VCAP_SERVICES or null if doesn't exists.
|
static void |
setServices(String services)
Sets the VCAP_SERVICES variable.
|
public static final String PLAN_EXPERIMENTAL
public static final String PLAN_FREE
public static final String PLAN_STANDARD
public static String getAPIKey(String serviceName)
serviceName - the service namepublic static String getAPIKey(String serviceName, String plan)
serviceName - the service nameplan - the service plan: standard, free or experimentalpublic static void setServices(String services)
services - the VCAP_SERVICESCopyright © 2015–2016. All rights reserved.