public class BounceResult extends Object
Represents result of the message examination as a bounce message.
Constructor and Description |
---|
BounceResult() |
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Indicates the action performed as a result of attempt to deliver the message.
|
MailMessage |
getOriginalMessage()
Contains the original message.
|
String |
getReason()
For a "failed" or "delayed" recipient, contains the actual diagnostic code issued by the mail transport.
|
String |
getRecipient()
Indicates the original recipient address as specified by the sender of the message for which the delivery failure report was issued.
|
String |
getStatus()
Contains a transport-independent status code which indicates the delivery status of the message to that recipient.
|
boolean |
isBounced()
True if email is a delivery failure or deliver delay report.
|
public final boolean isBounced()
True if email is a delivery failure or deliver delay report.
public final int getAction()
Indicates the action performed as a result of attempt to deliver the message.
public final String getReason()
For a "failed" or "delayed" recipient, contains the actual diagnostic code issued by the mail transport.
public final String getRecipient()
Indicates the original recipient address as specified by the sender of the message for which the delivery failure report was issued.
public final String getStatus()
Contains a transport-independent status code which indicates the delivery status of the message to that recipient.
public final MailMessage getOriginalMessage()
Contains the original message.