|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.TransportEvent
public class TransportEvent
| Field Summary | |
|---|---|
protected Address[] |
invalid
Addresses that are invalid. |
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 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. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
Construct a new event, |
|
| Method Summary | |
|---|---|
void |
dispatch(Object listener)
|
Address[] |
getInvalidAddresses()
|
Message |
getMessage()
|
int |
getType()
|
Address[] |
getValidSentAddresses()
|
Address[] |
getValidUnsentAddresses()
|
| 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 |
| Field Detail |
|---|
public static final int MESSAGE_DELIVERED
public static final int MESSAGE_NOT_DELIVERED
public static final int MESSAGE_PARTIALLY_DELIVERED
protected int type
protected transient Address[] validSent
protected transient Address[] validUnsent
protected transient Address[] invalid
protected transient Message msg
| Constructor Detail |
|---|
public TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
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| Method Detail |
|---|
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
public Message getMessage()
public int getType()
public void dispatch(Object listener)
dispatch in class MailEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||