Package io.pivotal.cfenv.core
Class CfService
java.lang.Object
io.pivotal.cfenv.core.CfService
Contains the Map of values and type-safe accessors for properties of a single service
defined in VCAP_SERVICES.
- Author:
- Mark Pollack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByCredentialsContainsUriField(String... uriSchemes) There are common variations for the name of the uri field that prepend the schema portion of the URI, e.g.booleanexistsByLabelStartsWith(String label) booleanexistsByTagIgnoreCase(String... tags) booleanexistsByUriSchemeStartsWith(String... uriSchemes) getLabel()getMap()getName()getPlan()getTags()
-
Constructor Details
-
CfService
-
-
Method Details
-
createCredentials
-
createVolumes
-
getMap
-
getCredentials
-
getTags
-
getLabel
-
getPlan
-
getName
-
getString
-
existsByTagIgnoreCase
-
existsByUriSchemeStartsWith
-
existsByCredentialsContainsUriField
There are common variations for the name of the uri field that prepend the schema portion of the URI, e.g. if the uri schema is 'mysql' the field name in the JSON maybe 'mysqlUri', 'mysqluri', 'mysqlUrl' or 'mysqlurl'. This method searches for the presence of these alternatively named fields in the credentials of the service- Parameters:
uriSchemes- list of uri prefixes to use as uriSchemes- Returns:
- true if there is a uri field in the credentials map
-
existsByLabelStartsWith
- Parameters:
label- string to search for as a prefix in the service label- Returns:
- whether the label starts with the provided string
-