Name

MessageContext

Synopsis

The MessageContext object allows javax.activation.DataSource objects implementing the MessageAware interface to retrieve information about the message containing a particular piece of content.

public class MessageContext {
// Public Constructors
   public MessageContext( Part part);  
// Public Instance Methods
   public javax.mail.Message getMessage();  
   public Part getPart();  
   public javax.mail.Session getSession();  
}

Returned By

MessageAware.getMessageContext(), javax.mail.internet.MimePartDataSource.getMessageContext()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.