javax.mail.event
public class TransportEvent extends MailEvent
Version: 1.3
| Field Summary | |
|---|---|
| protected Address[] | invalid |
| protected Message | msg |
| static int | MESSAGE_DELIVERED
The message was successfully delivered to all recipients. |
| static int | MESSAGE_NOT_DELIVERED
The message was not sent. |
| static int | MESSAGE_PARTIALLY_DELIVERED
The message was successfully sent to some but not all of the recipients. |
| protected int | type
The event type. |
| protected Address[] | validSent |
| protected Address[] | validUnsent |
| Constructor Summary | |
|---|---|
| TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Constructor. | |
| Method Summary | |
|---|---|
| void | dispatch(Object listener)
Invokes the appropriate listener method. |
| Address[] | getInvalidAddresses()
Returns the addresses to which this message could not be sent. |
| Message | getMessage()
Returns the message. |
| int | getType()
Returns the type of this event. |
| Address[] | getValidSentAddresses()
Returns the addresses to which this message was delivered succesfully. |
| Address[] | getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not
delivered. |
Parameters: source the transport type the event type validSent the valid sent addresses validUnsent the valid unsent addresses invalid the invalid addresses msg the message