public interface SmsResponse
SmsRequest.send()
operation.
Note that in order to receive responses to an SmsRequest, the service writer
must implement the SmsListener
and set that listener in the
SmsRequest
.Modifier and Type | Method and Description |
---|---|
List |
getDeliveredRecipients()
Get the list of recipients for which this request was successfully
delivered.
|
String |
getDetail()
Get detailed information about the response.
|
List |
getFailedRecipients()
Get the list of recipients for which this request failed.
|
List |
getPendingRecipients()
Get the list of recipients for which this request was delivered to the
SMS provider, but the provider has indicated that the request is queued
for subsequent delivery.
|
int |
getStatus()
Get the response's status code.
|
int getStatus()
200 - The message was successfully delivered to all recipients. Note that this could also mean that the SMS request was successfully delivered by the SMS provider to a network gateway.
201 - The SMS connector received the SmsRequest, but the connector is in test mode.
206 - The message was successfully delivered to some of the recipients.
Use SmsResponse.getFailedRecipients()
to find the set of
recipients for which the request failed and/or
SmsResponse.getPendingRecipients()
to find the set of
recipients for which the request is pending.
400 - The SmsRequest was poorly formed. SmsResponse.getDetail()
will provide
more information.
500 - The connector that services SMS requests has encountered some kind
of internal error. SmsResponse.getDetail()
will provide more information.
503 - The request was sent to the provider, but the provider was unable
to send the message to any recipient. SmsResponse.getDetail()
will provide
more information, and SmsResponse.getFailedRecipients()
provides
the list of recipients for which the request failed.
String getDetail()
List getDeliveredRecipients()
List getPendingRecipients()
List getFailedRecipients()
Copyright © 2023 Avaya. All rights reserved.