public class CfEnv extends Object
| Constructor and Description |
|---|
CfEnv() |
| Modifier and Type | Method and Description |
|---|---|
List<CfService> |
findAllServices() |
CfCredentials |
findCredentialsByLabel(String... spec) |
CfCredentials |
findCredentialsByName(String... spec) |
CfCredentials |
findCredentialsByTag(String... spec) |
CfService |
findServiceByLabel(String... spec) |
CfService |
findServiceByName(String... spec) |
CfService |
findServiceByTag(String... spec) |
List<CfService> |
findServicesByLabel(String... spec) |
List<CfService> |
findServicesByName(String... spec) |
List<CfService> |
findServicesByTag(String... spec) |
CfApplication |
getApp() |
boolean |
isInCf()
Checks that the value of the environment variable VCAP_APPLICATION is not null, usually
indicating that this application is running inside of Cloud Foundry
|
public CfApplication getApp()
public CfCredentials findCredentialsByName(String... spec)
public CfCredentials findCredentialsByLabel(String... spec)
public CfCredentials findCredentialsByTag(String... spec)
public boolean isInCf()
true if the environment variable VCAP_APPLICATION is not null,
false otherwise.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.