public interface EmailResponse
EmailRequest.send()
operation.
Note that in order to receive responses to an EmailRequest, the service
writer must implement the EmailListener
and set that listener in the
EmailRequest
.Modifier and Type | Field and Description |
---|---|
static int |
EMAIL_BAD_REQUEST
Status Code 400 - The EmailRequest was poorly formed
|
static int |
EMAIL_CONNECTOR_ERROR
Status Code 500 - The email connector experienced an internal error
|
static int |
EMAIL_EXPIRED
Status Code 408 - The EmailRequest expired
|
static int |
EMAIL_OK
Status Code 200 - The EmailRequest was successfully delivered to the
email server
|
static int |
EMAIL_PARTIAL_SUCCESS
Status Code 206 - The EmailRequest was partially successfully delivered
by the email server
|
static int |
EMAIL_QUEUED
Status Code 202 - The EmailRequest was successfully queued to the email
connector
|
static int |
EMAIL_TEST
Status Code 201 - The email connector received the EmailRequest, but the
connector is in test mode
|
Modifier and Type | Method and Description |
---|---|
String |
getDetail()
Return the detailed information about the response.
|
List |
getInvalidAddresses()
Return the addresses to which this message could not be sent.
|
int |
getStatus()
Return the response's status code.
|
List |
getValidSentAddresses()
Return the addresses to which this message was sent successfully.
|
List |
getValidUnsentAddresses()
Return the addresses that are valid but to which this message was not
sent.
|
static final int EMAIL_OK
static final int EMAIL_TEST
static final int EMAIL_QUEUED
static final int EMAIL_PARTIAL_SUCCESS
static final int EMAIL_BAD_REQUEST
static final int EMAIL_EXPIRED
static final int EMAIL_CONNECTOR_ERROR
int getStatus()
EmailResponse.getDetail()
will provide more information.
EmailResponse.getInvalidAddresses()
provides the list of
recipients with invalid addresses.
EmailResponse.getValidUnsentAddresses()
provides the list of
recipients with unsent addresses.
String getDetail()
List getInvalidAddresses()
List getValidUnsentAddresses()
List getValidSentAddresses()
Copyright © 2023 Avaya. All rights reserved.