Class DwcTenantFacade
java.lang.Object
com.sap.cloud.sdk.cloudplatform.tenant.DefaultTenantFacade
com.sap.cloud.sdk.cloudplatform.tenant.DwcTenantFacade
- All Implemented Interfaces:
TenantFacade
Represents a specific
DefaultTenantFacade
that is used when running on the SAP Deploy with Confidence stack.-
Constructor Details
-
DwcTenantFacade
public DwcTenantFacade()
-
-
Method Details
-
tryGetCurrentTenant
Description copied from interface:TenantFacade
Returns aTry
of the currentTenant
.On SAP Business Technology Platform, the availability of a tenant is defined as follows:
Tenant available Tenant not available SAP Business Technology Platform Cloud Foundry A request is present with an "Authorization" header that contains a valid JWT bearer with field "app_tid", "zid", or "zone_uuid" (legacy).
As a fallback a JWT will be retrieved from a bound XSUAA instance.A request is not available, no "Authorization" header is present in the current request, the JWT bearer does not hold a field "app_tid", "zid", or "zone_uuid" (legacy), or there is no XSUAA service bound to this application. - Specified by:
tryGetCurrentTenant
in interfaceTenantFacade
- Overrides:
tryGetCurrentTenant
in classDefaultTenantFacade
- Returns:
- A
Try
of the currentTenant
.
-