Class SaasClient


public class SaasClient extends JsonRestClient
Implementation of the SaaS Registry REST client.
  • Constructor Details

    • SaasClient

      public SaasClient(com.sap.cloud.environment.servicebinding.api.ServiceBinding binding)
  • Method Details

    • findBinding

      public static Optional<com.sap.cloud.environment.servicebinding.api.ServiceBinding> findBinding(CdsRuntime runtime)
    • toTenantInfo

      public static TenantInfo toTenantInfo(Map<String,Object> tenant)
      Converts a tenant map to a tenant info object
      Parameters:
      tenant - tenant map
      Returns:
      tenant info object
    • callBackSaasRegistry

      public void callBackSaasRegistry(SaasRegistryCallback payload, String callbackUrl) throws IOException
      Throws:
      IOException
    • getSubscribedTenants

      public List<TenantInfo> getSubscribedTenants(UnaryOperator<TenantInfo> filter) throws IOException
      Retrieves the tenant info of all subscribed tenants
      Returns:
      tenants info
      Throws:
      IOException - throws when any connection problems occur
    • getSubscribedTenants

      public List<TenantInfo> getSubscribedTenants() throws IOException
      Retrieves the tenant info of all subscribed tenants
      Returns:
      tenants info
      Throws:
      IOException - throws when any connection problems occur