EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.TransportEvent
static int | Message has been successfully delivered to all recipients by the transport firing this event. |
static int | Message was not sent for some reason. |
static int | Message was successfully sent to some recipients but not to all. |
transient Address[] | |
transient Message | |
int | The event type. |
transient Address[] | |
transient Address[] |
TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg) Constructor. |
void | dispatch(Object listener) Invokes the appropriate TransportListener method. |
Address[] | Return the addresses to which this message could not be sent. |
Get the Message object associated with this Transport Event. | |
int | getType() Return the type of this event. |
Address[] | Return the addresses to which this message was sent succesfully. |
Address[] | Return the addresses that are valid but to which this message was not sent. |
public static final int MESSAGE_DELIVERED
public static final int MESSAGE_NOT_DELIVERED
public static final int MESSAGE_PARTIALLY_DELIVERED
protected transient Address[] invalid
protected transient Message msg
protected int type
protected transient Address[] validSent
protected transient Address[] validUnsent
public TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
public void dispatch(Object listener)
public Address[] getInvalidAddresses()
public Message getMessage()
public int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()