public class ScpCfCloudPlatform extends Object implements CloudPlatform
Constructor and Description |
---|
ScpCfCloudPlatform() |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName() |
com.google.common.base.Optional<com.google.gson.JsonObject> |
getConnectivityServiceCredentials() |
com.google.common.base.Optional<com.google.gson.JsonObject> |
getDestinationServiceCredentials() |
com.google.common.base.Optional<String> |
getEnvironmentVariable(String name) |
com.google.common.base.Optional<com.google.gson.JsonObject> |
getServiceCredentials(String serviceName) |
Map<String,com.google.gson.JsonElement> |
getVcapApplication() |
Map<String,com.google.gson.JsonArray> |
getVcapServices() |
String |
getXsAppName() |
com.google.common.base.Optional<com.google.gson.JsonObject> |
getXsuaaServiceCredentials() |
public com.google.common.base.Optional<String> getEnvironmentVariable(String name)
public String getApplicationName() throws CloudPlatformException
getApplicationName
in interface CloudPlatform
CloudPlatformException
- If there is an error accessing the application name.public Map<String,com.google.gson.JsonElement> getVcapApplication() throws CloudPlatformException
CloudPlatformException
public Map<String,com.google.gson.JsonArray> getVcapServices() throws CloudPlatformException
CloudPlatformException
public String getXsAppName() throws CloudPlatformException
CloudPlatformException
public com.google.common.base.Optional<com.google.gson.JsonObject> getServiceCredentials(String serviceName) throws CloudPlatformException
CloudPlatformException
public com.google.common.base.Optional<com.google.gson.JsonObject> getXsuaaServiceCredentials() throws CloudPlatformException
CloudPlatformException
public com.google.common.base.Optional<com.google.gson.JsonObject> getDestinationServiceCredentials() throws CloudPlatformException
CloudPlatformException
public com.google.common.base.Optional<com.google.gson.JsonObject> getConnectivityServiceCredentials() throws CloudPlatformException
CloudPlatformException
Copyright © 2018 SAP SE. All rights reserved.