javax.mail.Transport, javax.mail.event.TransportListener
| Modifier and Type | Field and Description |
|---|---|
| protected transient Address[] | invalid
The invalid addresses. |
| public static final int | MESSAGE_DELIVERED
Message has been successfully delivered to all recipients by the transport firing this event. |
| public static final int | MESSAGE_NOT_DELIVERED
Message was not sent for some reason. |
| public static final int | MESSAGE_PARTIALLY_DELIVERED
Message was successfully sent to some recipients but not to all. |
| protected transient Message | msg
The Message to which this event applies. |
| private static final long | |
| protected int | type
The event type. |
| protected transient Address[] | validSent
The valid address to which the message was sent. |
| protected transient Address[] | validUnsent
The valid address to which the message was not sent. |
| Access | Constructor and Description |
|---|---|
| public | TransportEvent(Transport
The Transport object transport, int the event type (MESSAGE_DELIVERED, etc.) type, Address[] the valid addresses to which the message was sent validSent, Address[] the valid addresses to which the message was
not sent validUnsent, Address[] the invalid addresses invalid, Message the message being sent msg)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispatch(Object
the listener to invoke on listener)Implements abstract javax. |
| public Address[] | Returns: Addresses to which the message sending failed or nullReturn the addresses to which this message could not be sent. |
| public Message | |
| public int | |
| public Address[] | Returns: Addresses to which the message was sent successfully or nullReturn the addresses to which this message was sent succesfully. |
| public Address[] | Returns: Addresses that are valid but to which the message was not sent successfully or nullReturn the addresses that are valid but to which this message was not sent. |
| invalid | back to summary |
|---|---|
| protected transient Address[] invalid The invalid addresses. | |
| MESSAGE_DELIVERED | back to summary |
|---|---|
| public static final 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, | |
| MESSAGE_NOT_DELIVERED | back to summary |
|---|---|
| public static final int MESSAGE_NOT_DELIVERED Message was not sent for some reason. validSent[] should be null. validUnsent[] may have addresses that are valid (but the message wasn't sent to them). invalid[] should likely contain invalid addresses. | |
| MESSAGE_PARTIALLY_DELIVERED | back to summary |
|---|---|
| public static final int MESSAGE_PARTIALLY_DELIVERED Message was successfully sent to some recipients but not to all. validSent[] holds addresses of recipients to whom the message was sent. validUnsent[] holds valid addresses to which the message was not sent. invalid[] holds invalid addresses, if any. | |
| msg | back to summary |
|---|---|
| protected transient Message msg The Message to which this event applies. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| type | back to summary |
|---|---|
| protected int type The event type. | |
| validSent | back to summary |
|---|---|
| protected transient Address[] validSent The valid address to which the message was sent. | |
| validUnsent | back to summary |
|---|---|
| protected transient Address[] validUnsent The valid address to which the message was not sent. | |
| TransportEvent | back to summary |
|---|---|
| public TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg) Constructor.
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(Object listener) Implements abstract javax. Invokes the appropriate TransportListener method.
| |
| getInvalidAddresses | back to summary |
|---|---|
| public Address[] getInvalidAddresses() Return the addresses to which this message could not be sent.
| |
| getMessage | back to summary |
|---|---|
| public Message getMessage() Get the Message object associated with this Transport Event.
| |
| getType | back to summary |
|---|---|
| public int getType() Return the type of this event.
| |
| getValidSentAddresses | back to summary |
|---|---|
| public Address[] getValidSentAddresses() Return the addresses to which this message was sent succesfully.
| |
| getValidUnsentAddresses | back to summary |
|---|---|
| public Address[] getValidUnsentAddresses() Return the addresses that are valid but to which this message was not sent.
| |