javax.mail.event
public class TransportEvent extends MailEvent
Field Summary | |
---|---|
protected Address[] | invalid
Addresses that are invalid. |
protected Message | msg
The message associated with this event. |
static int | MESSAGE_DELIVERED
Indicates that the message has successfully been delivered to all
recipients. |
static int | MESSAGE_NOT_DELIVERED
Indicates that no messages could be delivered. |
static int | MESSAGE_PARTIALLY_DELIVERED
Indicates that some of the messages were successfully delivered
but that some failed. |
protected int | type
The event type. |
protected Address[] | validSent
Addresses to which the message was successfully delivered. |
protected Address[] | validUnsent
Addresses which are valid but to which the message was not sent. |
Constructor Summary | |
---|---|
TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message message)
Construct a new event,
|
Method Summary | |
---|---|
void | dispatch(Object listener) |
Address[] | getInvalidAddresses() |
Message | getMessage() |
int | getType() |
Address[] | getValidSentAddresses() |
Address[] | getValidUnsentAddresses() |
Parameters: transport the transport attempting to deliver the message type the event type validSent addresses to which the message was successfully delivered validUnsent addresses which are valid but to which the message was not sent invalid invalid addresses message the associated message