IT. Expert System.

Java Enterprise Edition (EE)

MessageContext


javax.mail
Class MessageContext

java.lang.Object
  javax.mail.MessageContext
public class MessageContext
extends java.lang.Object

The context in which a piece of Message content is contained. A MessageContext object is returned by the getMessageContext method of the MessageAware interface. MessageAware is typically implemented by DataSources to allow a DataContentHandler to pass on information about the context in which a data content object is operating.

Since:
JavaMail 1.1
See Also:
MessageAware, DataSource, DataContentHandler

Constructor Summary
MessageContext(Part part)
          Create a MessageContext object describing the context of the given Part.
 
Method Summary
 Message getMessage()
          Return the Message that contains the content.
 Part getPart()
          Return the Part that contains the content.
 Session getSession()
          Return the Session we're operating in.
 
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)
Create a MessageContext object describing the context of the given Part.

Method Detail

getPart

public Part getPart()
Return the Part that contains the content.

Returns:
the containing Part, or null if not known

getMessage

public Message getMessage()
Return the Message that contains the content. Follows the parent chain up through containing Multipart objects until it comes to a Message object, or null.

Returns:
the containing Message, or null if not known

getSession

public Session getSession()
Return the Session we're operating in.

Returns:
the Session, or null if not known


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 610 / 158735588. Delta: 0.02024 с