Name
TransportEvent
Synopsis
The TransportEvent
class models message transport events,
including message delivery and message delivery failure.
public class TransportEvent extends MailEvent { // Public Constructors public TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, javax.mail.Message msg); // Public Constants public static final int MESSAGE_DELIVERED; // =1 public static final int MESSAGE_NOT_DELIVERED; // =2 public static final int MESSAGE_PARTIALLY_DELIVERED; // =3 // Property Accessor Methods (by property name) public Address[] getInvalidAddresses(); public javax.mail.Message getMessage(); // 1.2 public int getType(); public Address[] getValidSentAddresses(); public Address[] getValidUnsentAddresses(); // Public Methods Overriding MailEvent public void dispatch( Object listener); // Protected Instance Fields protected transient Address[] invalid; protected transient javax.mail.Message msg; protected int type; protected transient Address[] validSent; protected transient Address[] validUnsent; }
Passed To
TransportAdapter.{messageDelivered()
, messageNotDelivered()
, messagePartiallyDelivered()}
, TransportListener.{messageDelivered()
, messageNotDelivered()
, messagePartiallyDelivered()}
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.