1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.mail;
  6. /**
  7. * An interface optionally implemented by <code>DataSources</code> to
  8. * supply information to a <code>DataContentHandler</code> about the
  9. * message context in which the data content object is operating.
  10. *
  11. * @see javax.mail.MessageContext
  12. * @see javax.activation.DataSource
  13. * @see javax.activation.DataContentHandler
  14. * @since JavaMail 1.1
  15. */
  16. public interface MessageAware {
  17. /**
  18. * Return the message context.
  19. */
  20. public MessageContext getMessageContext();
  21. }