javax.mail.event
Class TransportEvent
public class TransportEvent
static int | MESSAGE_DELIVERED- Indicates that the message has successfully been delivered to all
recipients.
|
static int | MESSAGE_NOT_DELIVERED- Indicates that no messages could be delivered.
|
static int | MESSAGE_PARTIALLY_DELIVERED- Indicates that some of the messages were successfully delivered
but that some failed.
|
protected Address[] | invalid- Addresses that are invalid.
|
protected Message | msg- The message associated with this event.
|
protected int | type- The event type.
|
protected Address[] | validSent- Addresses to which the message was successfully delivered.
|
protected Address[] | validUnsent- Addresses which are valid but to which the message was not sent.
|
MESSAGE_DELIVERED
public static final int MESSAGE_DELIVERED
Indicates that the message has successfully been delivered to all
recipients.
MESSAGE_NOT_DELIVERED
public static final int MESSAGE_NOT_DELIVERED
Indicates that no messages could be delivered.
MESSAGE_PARTIALLY_DELIVERED
public static final int MESSAGE_PARTIALLY_DELIVERED
Indicates that some of the messages were successfully delivered
but that some failed.
invalid
protected Address[] invalid
Addresses that are invalid.
msg
protected Message msg
The message associated with this event.
type
protected int type
The event type.
validSent
protected Address[] validSent
Addresses to which the message was successfully delivered.
validUnsent
protected Address[] validUnsent
Addresses which are valid but to which the message was not sent.
TransportEvent
public TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message) Construct a new event,
transport - the transport attempting to deliver the messagetype - the event typevalidSent - addresses to which the message was successfully deliveredvalidUnsent - addresses which are valid but to which the message was not sentinvalid - invalid addressesmessage - the associated message
getInvalidAddresses
public Address[] getInvalidAddresses()
getMessage
public Message getMessage()
getType
public int getType()
getValidSentAddresses
public Address[] getValidSentAddresses()
getValidUnsentAddresses
public Address[] getValidUnsentAddresses()