javax.mail
Class MessageContext
java.lang.Object
javax.mail.MessageContext
public class MessageContext
extends java.lang.Object
The context in which a piece of message content is contained.
MessageContext(Part part) - Create a MessageContext object describing the context of the supplied Part.
|
MessageContext
public MessageContext(Part part)
Create a MessageContext object describing the context of the supplied Part.
part
- the containing part
getMessage
public Message getMessage()
Return the message that contains the content; if the Part is a
Multipart
then recurse up the chain until a
Message
is found.
getPart
public Part getPart()
Return the
Part
that contains the content.
getSession
public Session getSession()
Return the session associated with the Message containing this Part.
- the session associated with this context's root message