javax.mail.event
Class TransportEvent
public class TransportEvent
A transport event.
MESSAGE_DELIVERED
public static final int MESSAGE_DELIVERED
The message was successfully delivered to all recipients.
MESSAGE_NOT_DELIVERED
public static final int MESSAGE_NOT_DELIVERED
The message was not sent.
MESSAGE_PARTIALLY_DELIVERED
public static final int MESSAGE_PARTIALLY_DELIVERED
The message was successfully sent to some but not all of the recipients.
type
protected int type
The event type.
validSent
protected Address[] validSent
validUnsent
protected Address[] validUnsent
TransportEvent
public TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message msg)
Constructor.
type
- the event typevalidSent
- the valid sent addressesvalidUnsent
- the valid unsent addressesinvalid
- the invalid addressesmsg
- the message
dispatch
public void dispatch(Object listener)
Invokes the appropriate listener method.
- dispatch in interface MailEvent
getInvalidAddresses
public Address[] getInvalidAddresses()
Returns the addresses to which this message could not be sent.
getMessage
public Message getMessage()
Returns the message.
getType
public int getType()
Returns the type of this event.
getValidSentAddresses
public Address[] getValidSentAddresses()
Returns the addresses to which this message was delivered succesfully.
getValidUnsentAddresses
public Address[] getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not
delivered.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved