|
||||||||||
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
A transport event.
Field Summary | |
---|---|
protected Address[] |
invalid
|
static int |
MESSAGE_DELIVERED
The message was successfully delivered to all recipients. |
static int |
MESSAGE_NOT_DELIVERED
The message was not sent. |
static int |
MESSAGE_PARTIALLY_DELIVERED
The message was successfully sent to some but not all of the recipients. |
protected Message |
msg
|
protected int |
type
The event type. |
protected Address[] |
validSent
|
protected Address[] |
validUnsent
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message msg)
Constructor. |
Method Summary | |
---|---|
void |
dispatch(java.lang.Object listener)
Invokes the appropriate listener method. |
Address[] |
getInvalidAddresses()
Returns the addresses to which this message could not be sent. |
Message |
getMessage()
Returns the message. |
int |
getType()
Returns the type of this event. |
Address[] |
getValidSentAddresses()
Returns the addresses to which this message was delivered succesfully. |
Address[] |
getValidUnsentAddresses()
Returns the addresses that are valid but to which this message was not delivered. |
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 msg)
source
- the transporttype
- the event typevalidSent
- the valid sent addressesvalidUnsent
- the valid unsent addressesinvalid
- the invalid addressesmsg
- the messageMethod Detail |
---|
public int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
public Message getMessage()
public void dispatch(java.lang.Object listener)
dispatch
in class MailEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |