javax.mail

Class MessageContext

public class MessageContext extends Object

The context of a datum of message content.

Version: 1.3

Author: Chris Burdess

Constructor Summary
MessageContext(Part part)
Creates a message context describing the given part.
Method Summary
MessagegetMessage()
Returns the message that contains the content.
PartgetPart()
Returns the part containing the content.
SessiongetSession()
Returns the session context.

Constructor Detail

MessageContext

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

Method Detail

getMessage

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

getPart

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

getSession

public Session getSession()
Returns the session context.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved