public class VcapService extends Object
VCAP_SERVICES environment variable of XS Advanced/Cloud Foundry.| Constructor and Description |
|---|
VcapService(org.codehaus.jettison.json.JSONObject o)
Creates a new instance of
VcapService from a JSON object. |
VcapService(String name,
String label,
List<String> tags,
String plan,
Map<String,Object> credentials)
Creates a new instance of
VcapService. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,Object> |
getCredentials()
Returns the credentials of the service.
|
String |
getLabel()
Returns the label of the service.
|
String |
getName()
Returns the name of the service.
|
String |
getPlan()
Returns the service plan of the service.
|
List<String> |
getTags()
Returns the tags of the service.
|
int |
hashCode() |
String |
toString() |
public VcapService(org.codehaus.jettison.json.JSONObject o)
throws org.codehaus.jettison.json.JSONException
VcapService from a JSON object.o - the JSON object representing a VcapServiceorg.codehaus.jettison.json.JSONException - if there is an error in the JSON objectpublic VcapService(String name, String label, List<String> tags, String plan, Map<String,Object> credentials)
VcapService.name - the name of the servicelabel - the label of the servicetags - the tags of the serviceplan - the service plancredentials - the credentials of the servicepublic String getName()
public String getLabel()
public List<String> getTags()
public String getPlan()
public Map<String,Object> getCredentials()
Copyright © 2016 SAP. All Rights Reserved.