|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.mail.event
|
Field Summary | |
---|---|
protected Address[] |
invalid
|
static int |
MESSAGE_DELIVERED
Message has been successfully delivered to all recipients by the transport firing this event. validSent[] contains all the addresses this transport sent to successfully. validUnsent[] and invalid[] should be null, |
static int |
MESSAGE_NOT_DELIVERED
Message was not sent for some reason. validSent[] should be null. |
static int |
MESSAGE_PARTIALLY_DELIVERED
Message was successfully sent to some recipients but not to all. |
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(Object listener)
Invokes the appropriate TransportListener method. |
Address[] |
getInvalidAddresses()
Return the addresses to which this message could not be sent. |
Message |
getMessage()
Get the Message object associated with this Transport Event. |
int |
getType()
Return the type of this event. |
Address[] |
getValidSentAddresses()
Return the addresses to which this message was sent succesfully. |
Address[] |
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 |
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)
transport
- The Transport objectMethod Detail |
---|
public int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
public Message getMessage()
public void dispatch(Object listener)