I am trying to access the variables in CUPS in cloud foundry. Currently I have my values set as environment variables.
In java I use the following code to retrieve environment variables.
String variableName = System.getenv("variableName");
I am following this link and it talks about creating a user provided service and retrieve data from there.
Example
cfenv = require("cfenv")
var localVCAP = require("./local-vcap.json")
var appEnv = cfenv.getAppEnv({vcap: localVCAP})
var creds = appEnv.getServiceCreds(/session-secret/) || {}
console.log("session secret is:", creds.secret)
How can I do simliar thing but in java? "How to retrieve cloud foundry CUPS varibles into java?"