This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.mail
class 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.
- See Also (auto-generated):
-
Message
Session
Transport
Constructor Summary |
Create a MessageContext object describing the context of the given Part.
|
Method Summary |
Message |
Return the Message that contains the content.
|
Part |
Return the Part that contains the content.
|
Session |
Return the Session we're operating in.
|
MessageContext
public MessageContext(Part part)
-
Create a MessageContext object describing the context of the given Part.
- Parameters:
part
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.
- Returns:
- the containing Message, or null if not known
getPart
public Part getPart()
-
Return the Part that contains the content.
- Returns:
- the containing Part, or null if not known
getSession
public Session getSession()
-
Return the Session we're operating in.
- Returns:
- the Session, or null if not known
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.