Fields Summary |
---|
public static final int | MESSAGE_DELIVEREDMessage has been successfully delivered to all recipients by the
transport firing this event. validSent[] contains all the addresses
this transport sent to successfully. validUnsent[] and invalid[]
should be null, |
public static final int | MESSAGE_NOT_DELIVEREDMessage was not sent for some reason. validSent[] should be null.
validUnsent[] may have addresses that are valid (but the message
wasn't sent to them). invalid[] should likely contain invalid addresses. |
public static final int | MESSAGE_PARTIALLY_DELIVEREDMessage was successfully sent to some recipients but not to all.
validSent[] holds addresses of recipients to whom the message was sent.
validUnsent[] holds valid addresses to which the message was not sent.
invalid[] holds invalid addresses, if any. |
protected int | typeThe event type. |
protected transient Address[] | validSent |
protected transient Address[] | validUnsent |
protected transient Address[] | invalid |
protected transient Message | msg |
private static final long | serialVersionUID |
Methods Summary |
---|
public void | dispatch(java.lang.Object listener)Invokes the appropriate TransportListener method.
if (type == MESSAGE_DELIVERED)
((TransportListener)listener).messageDelivered(this);
else if (type == MESSAGE_NOT_DELIVERED)
((TransportListener)listener).messageNotDelivered(this);
else // MESSAGE_PARTIALLY_DELIVERED
((TransportListener)listener).messagePartiallyDelivered(this);
|
public javax.mail.Address[] | getInvalidAddresses()Return the addresses to which this message could not be sent.
return invalid;
|
public Message | getMessage()Get the Message object associated with this Transport Event.
return msg;
|
public int | getType()Return the type of this event.
return type;
|
public javax.mail.Address[] | getValidSentAddresses()Return the addresses to which this message was sent succesfully.
return validSent;
|
public javax.mail.Address[] | getValidUnsentAddresses()Return the addresses that are valid but to which this message
was not sent.
return validUnsent;
|