javax.mail
Class MessageContext

java.lang.Object
  extended by javax.mail.MessageContext

public class MessageContext
extends Object

The context of a datum of message content.

Version:
1.4
Author:
Chris Burdess

Constructor Summary
MessageContext(Part part)
          Creates a message context describing the given part.
 
Method Summary
 Message getMessage()
          Returns the message that contains the content.
 Part getPart()
          Returns the part containing the content.
 Session getSession()
          Returns the session context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageContext

public MessageContext(Part part)
Creates a message context describing the given part.

Method Detail

getPart

public Part getPart()
Returns the part containing the content. This may be null.


getMessage

public Message getMessage()
Returns the message that contains the content.


getSession

public Session getSession()
Returns the session context.



© Copyright 2003, 2004 The Free Software Foundation, All rights reserved