Home » apache-tomcat-6.0.26-src » javax » mail » event » [javadoc | source]
javax.mail.event
public class: TransportEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      javax.mail.event.MailEvent
         javax.mail.event.TransportEvent

All Implemented Interfaces:
    Serializable

This class models Transport events.
Field Summary
public static final  int MESSAGE_DELIVERED    Message 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_DELIVERED    Message 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_DELIVERED    Message 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 type    The event type.
    serial:
 
protected transient  Address[] validSent     
protected transient  Address[] validUnsent     
protected transient  Address[] invalid     
protected transient  Message msg     
Fields inherited from java.util.EventObject:
source
Constructor:
 public TransportEvent(Transport transport,
    int type,
    Address[] validSent,
    Address[] validUnsent,
    Address[] invalid,
    Message msg) 
    Constructor.
    Parameters:
    transport - The Transport object
Method from javax.mail.event.TransportEvent Summary:
dispatch,   getInvalidAddresses,   getMessage,   getType,   getValidSentAddresses,   getValidUnsentAddresses
Methods from javax.mail.event.MailEvent:
dispatch
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.event.TransportEvent Detail:
 public  void dispatch(Object listener) 
    Invokes the appropriate TransportListener method.
 public Address[] getInvalidAddresses() 
    Return the addresses to which this message could not be sent.
 public Message getMessage() 
    Get the Message object associated with this Transport Event.
 public int getType() 
    Return the type of this event.
 public Address[] getValidSentAddresses() 
    Return the addresses to which this message was sent succesfully.
 public Address[] getValidUnsentAddresses() 
    Return the addresses that are valid but to which this message was not sent.