Modifier and Type | Class and Description |
---|---|
class |
ServiceBindingDataException
Indicates a problem with service binding information in VCAP_SERVICES, an environment variable used to inform the
application of usable services in SAP Cloud Platform Cloud Foundry.
|
Modifier and Type | Method and Description |
---|---|
String |
ScpCfCloudPlatform.getApplicationName()
Get the application name.
|
String |
ScpNeoCloudPlatform.getApplicationName()
Get the application name.
|
String |
CloudPlatform.getApplicationName()
Get the application name.
|
String |
ScpCfCloudPlatform.getApplicationProcessId()
Get the process ID of the current application.
|
String |
ScpNeoCloudPlatform.getApplicationProcessId()
Get the process ID of the current application.
|
String |
CloudPlatform.getApplicationProcessId()
Get the process ID of the current application.
|
String |
ScpCfCloudPlatform.getApplicationUrl()
Get the application url.
|
String |
ScpNeoCloudPlatform.getApplicationUrl()
Get the application url.
|
String |
CloudPlatform.getApplicationUrl()
Get the application url.
|
static CloudPlatform |
CloudPlatformAccessor.getCloudPlatform()
Returns the current
CloudPlatform . |
String |
ScpNeoCloudPlatform.getCloudPlatformLandscape()
Get the type of the region host where the current application is deployed.
|
String |
ScpNeoCloudPlatform.getCloudPlatformRegion()
Get the SAP Cloud Platform region where the current application is deployed.
|
String |
ScpNeoCloudPlatform.getCloudPlatformRegionHost()
Get the Base URL of the SAP Cloud Platform region host where the current application is deployed.
|
String |
ScpNeoCloudPlatform.getCloudPlatformRegionHostCert()
Get the Base URL of the SAP Cloud Platform region host which enables client certificate authentication.
|
String |
ScpNeoCloudPlatform.getCloudPlatformRegionHostSvc()
Get the Base URL of the SAP Cloud Platform region host for direct communication within the same region, and not
open on the Internet or other networks.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getConnectivityServiceCredentials()
Retrieves the connectivity service credentials.
|
List<com.google.gson.JsonObject> |
ScpCfCloudPlatform.getConnectivityServiceCredentialsList()
Retrieves the service credentials for all bound connectivity service instances.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getDestinationServiceCredentials()
Retrieves the destination service credentials.
|
List<com.google.gson.JsonObject> |
ScpCfCloudPlatform.getDestinationServiceCredentialsList()
Retrieves the service credentials for all bound destination service instances.
|
static ScpCfCloudPlatform |
ScpCfCloudPlatform.getInstanceOrThrow()
Be aware that this method is Beta (as indicated by the annotation) and therefore subject to breaking changes.
|
int |
ScpNeoCloudPlatform.getLocalHttpPort()
Get the HTTP port of the application bound to localhost.
|
String |
ScpNeoCloudPlatform.getOnPremiseProxyHost()
Get the on-premise proxy host.
|
int |
ScpNeoCloudPlatform.getOnPremiseProxyPort()
Get the on-premise proxy port.
|
String |
ScpNeoCloudPlatform.getProviderAccountId()
Get the provider account name.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getServiceCredentials(String serviceName)
Retrieves the credentials of a service.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getServiceCredentials(String serviceName,
String servicePlan)
Retrieves the credentials of a service.
|
Map<String,com.google.gson.JsonElement> |
ScpCfCloudPlatform.getVcapApplication()
Provides access to the "VCAP_APPLICATION" environment variable.
|
Map<String,com.google.gson.JsonArray> |
ScpCfCloudPlatform.getVcapServices()
Provides access to the "VCAP_SERVICES" environment variable.
|
String |
ScpCfCloudPlatform.getXsAppName()
Retrieves the "xsappname" from the XSUAA service instance credentials.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getXsuaaServiceCredentials()
Retrieves the XSUAA service credentials.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getXsuaaServiceCredentials(com.auth0.jwt.interfaces.DecodedJWT jwt)
Retrieves the service credentials for all bound XSUAA service instances based on the given JSON Web Token and the
service plans of each instance.
|
com.google.gson.JsonObject |
ScpCfCloudPlatform.getXsuaaServiceCredentials(String servicePlan)
Retrieves the XSUAA service credentials.
|
List<com.google.gson.JsonObject> |
ScpCfCloudPlatform.getXsuaaServiceCredentialsList()
Retrieves the service credentials for all bound XSUAA service instances.
|
Modifier and Type | Class and Description |
---|---|
class |
ScpCfServiceAuthorizationFailedException
Thrown if the service access cannot be secured, either because oauth token grant was denied, request failed, or token
was rejected.
|
class |
ScpCfServiceCreationFailedException
Thrown if the service cannot be found or there is another kind of problem preventing its creation.
|
Modifier and Type | Method and Description |
---|---|
static ScpCfService |
ScpCfService.of(ScpCfServiceDesignator designator,
String authUrlJsonPath,
String clientIdJsonPath,
String clientSecretJsonPath,
String serviceLocationJsonPath)
Factory method reading information about service from VCAP_SERVICES.
|
static ScpCfService |
ScpCfService.of(String serviceType,
String servicePlan,
String authUrlJsonPath,
String clientIdJsonPath,
String clientSecretJsonPath,
String serviceLocationJsonPath)
Factory method reading information about service from VCAP_SERVICES.
|
static ScpCfService |
ScpCfService.ofMultiTenant(ScpCfServiceDesignator designator,
String authUrlJsonPath,
String clientIdJsonPath,
String clientSecretJsonPath,
String serviceLocationJsonPath,
boolean useProviderTenant)
Factory method reading information about service from VCAP_SERVICES.
|
static ScpCfService |
ScpCfService.ofMultiTenant(String serviceType,
String servicePlan,
String authUrlJsonPath,
String clientIdJsonPath,
String clientSecretJsonPath,
String serviceLocationJsonPath,
boolean useProviderTenant)
Factory method reading information about service from VCAP_SERVICES.
|
Modifier and Type | Class and Description |
---|---|
class |
MultipleServiceBindingsException
Thrown if multiple bindings are found to a service on SAP Cloud Platform Cloud Foundry.
|
class |
NoServiceBindingException
Thrown if no binding is found to a service on SAP Cloud Platform Cloud Foundry.
|
Modifier and Type | Method and Description |
---|---|
AuthTokenBuilder.FluentHelperBuild |
AuthTokenBuilder.FluentHelperUnsignedJwt.ofTenant(String tenantId,
String subdomain)
A non-validated JWT is constructed based on tenant information (
xsappname and issuer URL of
subscriber in VCAP_SERVICES environment variable). |
Modifier and Type | Method and Description |
---|---|
static MultichainService |
MultichainService.create()
Create a service instance looking for an instance of service type 'multichain'.
|
Modifier and Type | Method and Description |
---|---|
static FabricService |
FabricService.create()
Deprecated.
Create a service instance looking for an instance of service type 'hyperledger-fabric'.
|
String |
FabricService.invokeOrQuery(FabricInvocationType invocationType,
String chainCodeId,
String function,
String... params)
Deprecated.
Access a function exposed by a chaincode.
|
Modifier and Type | Method and Description |
---|---|
static LeonardoMlService |
LeonardoMlFoundation.create(CloudFoundryLeonardoMlServiceType cfServiceType,
LeonardoMlServiceType mlServiceType)
Loads service details from Cloud Foundry service of given type for the given Leonardo Machine Learning Foundation
service type.
|
static LeonardoMlService |
LeonardoMlFoundation.create(String cfServiceType,
String serviceUrlKey)
Loads service details from Cloud Foundry service of given type for the given Leonardo Machine Learning Foundation
service type.
|
static LeonardoMlService |
LeonardoMlService.create(String cfServiceType,
String serviceUrlKey)
Generic creation of a service instance.
|
<R> R |
LeonardoMlService.invoke(org.apache.http.client.methods.HttpRequestBase request,
Function<org.apache.http.HttpResponse,R> resultProcessor)
Invokes the given request against the service and returns results.
|
Copyright © 2021 SAP SE. All rights reserved.