|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.TransportEvent
public class TransportEvent
This class models Transport events.
Transport,
TransportListener,
序列化表格| 字段摘要 | |
|---|---|
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
|
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message msg)
Constructor. |
|
| 方法摘要 | |
|---|---|
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. |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
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)
transport - The Transport object| 方法详细信息 |
|---|
public int getType()
public Address[] getValidSentAddresses()
public Address[] getValidUnsentAddresses()
public Address[] getInvalidAddresses()
public Message getMessage()
public void dispatch(Object listener)
MailEvent 中的 dispatch
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||