public class TransportEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message msg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 messagepublic int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
public Message getMessage()