Package javax.mail

Class MessageContext


  • public class MessageContext
    extends java.lang.Object
    The context of a datum of message content.
    Version:
    1.4
    Author:
    Chris Burdess
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageContext​(Part part)
      Creates a message context describing the given part.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.