java.lang.Object | +--java.util.EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.TransportEvent
This class models Transport events.
Transport
,TransportListener
,Serialized Forminvalid | |
MESSAGE_DELIVERED Message has beensuccessfully delivered to all recipients by the transport firing this event. | |
MESSAGE_NOT_DELIVERED Message was not sent for some reason. | |
MESSAGE_PARTIALLY_DELIVERED Message was successfully sent to some recipients but not to all. | |
msg | |
type The event type. | |
validSent | |
validUnsent |
Fields inherited from class java.util.EventObject |
source |
TransportEvent(Transport transport, int type,Address[] validSent,Address[] validUnsent,Address[] invalid,Message msg) Constructor. |
dispatch(java.lang.Object listener) Invokes the appropriate TransportListener method. | |
getInvalidAddresses() Return the addresses to which this message could not be sent. | |
getType() Return the type of this event. | |
getValidSentAddresses() Return the addresses to which this message was sent succesfully. | |
getValidUnsentAddresses() Return the addresses that are valid but to which this message was not sent. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
public static final intMESSAGE_DELIVERED
public static final intMESSAGE_NOT_DELIVERED
public static final intMESSAGE_PARTIALLY_DELIVERED
protected inttype
protected transientAddress[]validSent
protected transientAddress[]validUnsent
protected transientAddress[]invalid
protected transientMessagemsg
publicTransportEvent(Transport transport, int type,Address[] validSent,Address[] validUnsent,Address[] invalid,Message msg)
source
- The Transport objectpublic intgetType()
publicAddress[]getValidSentAddresses()
publicAddress[]getValidUnsentAddresses()
publicAddress[]getInvalidAddresses()
public voiddispatch(java.lang.Object listener)
dispatch
in classMailEvent