Package com.sap.cds.feature.mt
Class SmsClient
java.lang.Object
com.sap.cds.integration.cloudsdk.rest.client.JsonRestClient
com.sap.cds.feature.mt.SmsClient
public class SmsClient
extends com.sap.cds.integration.cloudsdk.rest.client.JsonRestClient
Implementation of the SMS REST client.
-
Field Summary
FieldsFields inherited from class com.sap.cds.integration.cloudsdk.rest.client.JsonRestClient
mapper -
Constructor Summary
ConstructorsConstructorDescriptionSmsClient(com.sap.cloud.environment.servicebinding.api.ServiceBinding binding) -
Method Summary
Modifier and TypeMethodDescriptionvoidcallBackSms(SmsCallback payload, String callbackUrl) static Optional<com.sap.cloud.environment.servicebinding.api.ServiceBinding>findBinding(com.sap.cds.services.runtime.CdsRuntime runtime) List<com.sap.cds.services.mt.TenantInfo>Retrieves the tenant info of all subscribed tenantsList<com.sap.cds.services.mt.TenantInfo>getSubscribedTenants(UnaryOperator<com.sap.cds.services.mt.TenantInfo> filter) Retrieves the tenant info of all subscribed tenantsstatic com.sap.cds.services.mt.TenantInfotoTenantInfo(Map<String, Object> tenant) Methods inherited from class com.sap.cds.integration.cloudsdk.rest.client.JsonRestClient
deleteRequest, getRequest, getRequestWithOnlyResponseCode, patchRequestWithOnlyResponseCode, postRequest, postRequest, putRequest, putRequestWithOnlyResponseCode
-
Field Details
-
BINDING_URL_KEY
- See Also:
-
SUBSCRIPTIONS_PATH
- See Also:
-
SUBSCRIPTION_STATE
- See Also:
-
-
Constructor Details
-
SmsClient
public SmsClient(com.sap.cloud.environment.servicebinding.api.ServiceBinding binding)
-
-
Method Details
-
findBinding
public static Optional<com.sap.cloud.environment.servicebinding.api.ServiceBinding> findBinding(com.sap.cds.services.runtime.CdsRuntime runtime) -
toTenantInfo
-
callBackSms
- Throws:
IOException
-
getSubscribedTenants
public List<com.sap.cds.services.mt.TenantInfo> getSubscribedTenants(UnaryOperator<com.sap.cds.services.mt.TenantInfo> filter) throws IOException Retrieves the tenant info of all subscribed tenants- Parameters:
filter- function to filter the tenants- Returns:
- tenants info
- Throws:
IOException- throws when any connection problems occur
-
getSubscribedTenants
Retrieves the tenant info of all subscribed tenants- Returns:
- tenants info
- Throws:
IOException- throws when any connection problems occur
-