| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class TransportEvent extends MailEvent
This class models Transport events.
Field Summary | |
---|---|
protected transient Address[] |
invalid
|
static int |
MESSAGE_DELIVERED
Message has been successfully delivered to all recipients by the transport firing this event. |
static int |
MESSAGE_NOT_DELIVERED
Message was not sent for some reason. |
static int |
MESSAGE_PARTIALLY_DELIVERED
Message was successfully sent to some recipients but not to all. |
protected transient Message |
msg
|
protected int |
type
The event type. |
protected transient Address[] |
validSent
|
protected transient Address[] |
validUnsent
|
Constructor Summary | |
---|---|
Constructor. |
Method Summary | |
---|---|
void |
Invokes the appropriate TransportListener method. |
Address[] |
Return the addresses to which this message could not be sent. |
Message |
Get the Message object associated with this Transport Event. |
int |
getType() Return the type of this event. |
Address[] |
Return the addresses to which this message was sent succesfully. |
Address[] |
Return the addresses that are valid but to which this message was not sent. |
Methods inherited from class javax.mail.event.MailEvent |
---|
dispatch |
Field Detail |
---|
protected transient Address[] invalid
public static final int MESSAGE_DELIVERED
public static final int MESSAGE_NOT_DELIVERED
public static final int MESSAGE_PARTIALLY_DELIVERED
protected transient Message msg
protected int type
protected transient Address[] validSent
protected transient Address[] validUnsent
Constructor Detail |
---|
public TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
transport
- The Transport objecttype
validSent
validUnsent
invalid
msg
Method Detail |
---|
public void dispatch(Object listener)
dispatch
in class MailEvent
listener
public Address[] getInvalidAddresses()
public Message getMessage()
public int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |