|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.MessageContext
public class MessageContext
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.
MessageAware
,
DataSource
,
DataContentHandler
Constructor Summary | |
---|---|
MessageContext(Part part)
Create a MessageContext object describing the context of the given Part. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageContext(Part part)
Method Detail |
---|
public Part getPart()
public Message getMessage()
public Session getSession()
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.