public class MessageContext
extends java.lang.Object
Constructor and Description |
---|
MessageContext(Part part)
Create a MessageContext object describing the context of the supplied Part.
|
Modifier and Type | Method and Description |
---|---|
Message |
getMessage()
|
Part |
getPart()
Return the
Part that contains the content. |
Session |
getSession()
Return the session associated with the Message containing this Part.
|
public MessageContext(Part part)
part
- the containing partpublic Message getMessage()
Multipart
then recurse up the chain until a Message
is found.public Session getSession()