Movatterモバイル変換


[0]ホーム

URL:


         


Class MessageContext

java.lang.Object  |  +--javax.mail.MessageContext

public classMessageContext
extends java.lang.Object

The context in which a piece of Message content is contained. AMessageContext object is returned by thegetMessageContext method of theMessageAware interface.MessageAware is typically implemented byDataSources to allow aDataContentHandler to pass on information about the context in which a data content object is operating.

Since:
JavaMail 1.1
See Also:
MessageAware,DataSource,DataContentHandler

MessageContext(Part part)
          Create a MessageContext object describing the context of the given Part.
 
getMessage()
          Return the Message that contains the content.
getPart()
          Return the Part that contains the content.
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
 

MessageContext

publicMessageContext(Part part)
Create a MessageContext object describing the context of the given Part.

getPart

publicPartgetPart()
Return the Part that contains the content.
Returns:
the containing Part, or null if not known

getMessage

publicMessagegetMessage()
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

getSession

publicSessiongetSession()
Return the Session we're operating in.
Returns:
the Session, or null if not known

         


[8]ページ先頭

©2009-2025 Movatter.jp