|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail Class MessageContext
java.lang.Object javax.mail.MessageContext
public class MessageContext
- extends Object
The context in which a piece of Message content is contained. A
MessageContext
object is returned by the
getMessageContext
method of the
MessageAware
interface. MessageAware
is
typically implemented by DataSources
to allow a
DataContentHandler
to pass on information about the
context in which a data content object is operating.
- 从以下版本开始:
- JavaMail 1.1
- 另请参见:
MessageAware
,DataSource
,DataContentHandler
构造器摘要 | |
---|---|
MessageContext(Part part)
Create a MessageContext object describing the context of the given Part. |
方法摘要 | |
---|---|
Message |
getMessage()
Return the Message that contains the content. |
Part |
getPart()
Return the Part that contains the content. |
Session |
getSession()
Return the Session we're operating in. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
MessageContext
public MessageContext(Part part)
- Create a MessageContext object describing the context of the given Part.
方法详细信息 |
---|
getPart
public Part getPart()
- Return the Part that contains the content.
- 返回:
- the containing Part, or null if not known
getMessage
public Message getMessage()
- Return the Message that contains the content.
Follows the parent chain up through containing Multipart
objects until it comes to a Message object, or null.
- 返回:
- the containing Message, or null if not known
getSession
public Session getSession()
- Return the Session we're operating in.
- 返回:
- the Session, or null if not known
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.