javax.mail.internet.MimeMessage.initStrict()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(9.8k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中javax.mail.internet.MimeMessage.initStrict()方法的一些代码示例,展示了MimeMessage.initStrict()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.initStrict()方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:initStrict

MimeMessage.initStrict介绍

[英]Set the strict flag based on property.
[中]根据属性设置严格标志。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Constructs a MimeMessage from the given InternetHeaders object
 * and content.
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param folder    The containing folder.
 * @param headers    The headers
 * @param content    The message content
 * @param msgnum    Message number of this message within its folder
 * @exception    MessagingException for failures
 */
protected MimeMessage(Folder folder, InternetHeaders headers,
  byte[] content, int msgnum) throws MessagingException {
this(folder, msgnum);
this.headers = headers;
this.content = content;
initStrict();
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Constructs a MimeMessage from the given InternetHeaders object
 * and content.
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param folder    The containing folder.
 * @param headers    The headers
 * @param content    The message content
 * @param msgnum    Message number of this message within its folder
 * @exception    MessagingException for failures
 */
protected MimeMessage(Folder folder, InternetHeaders headers,
  byte[] content, int msgnum) throws MessagingException {
this(folder, msgnum);
this.headers = headers;
this.content = content;
initStrict();
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param    folder    the Folder this message is from
 * @param    msgnum    the number of this message
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param    folder    the Folder this message is from
 * @param    msgnum    the number of this message
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Constructs a MimeMessage by reading and parsing the data from the
 * specified MIME InputStream. The InputStream will be left positioned
 * at the end of the data for the message. Note that the input stream
 * parse is done within this constructor itself. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param folder    The containing folder.
 * @param is    the message input stream
 * @param msgnum    Message number of this message within its folder
 * @exception    MessagingException for failures
 */
protected MimeMessage(Folder folder, InputStream is, int msgnum)
  throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Constructs a MimeMessage by reading and parsing the data from the
 * specified MIME InputStream. The InputStream will be left positioned
 * at the end of the data for the message. Note that the input stream
 * parse is done within this constructor itself. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param folder    The containing folder.
 * @param is    the message input stream
 * @param msgnum    Message number of this message within its folder
 * @exception    MessagingException for failures
 */
protected MimeMessage(Folder folder, InputStream is, int msgnum)
  throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 *
 * @param    session    the Sesssion
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 *
 * @param    session    the Sesssion
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Constructs a MimeMessage by reading and parsing the data from the
 * specified MIME InputStream. The InputStream will be left positioned
 * at the end of the data for the message. Note that the input stream
 * parse is done within this constructor itself. <p>
 *
 * The input stream contains an entire MIME formatted message with
 * headers and data.
 *
 * @param session    Session object for this message
 * @param is    the message input stream
 * @exception    MessagingException for failures
 */
public MimeMessage(Session session, InputStream is) 
    throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}

代码示例来源:origin: com.sun.mail/javax.mail

/**
 * Constructs a MimeMessage by reading and parsing the data from the
 * specified MIME InputStream. The InputStream will be left positioned
 * at the end of the data for the message. Note that the input stream
 * parse is done within this constructor itself. <p>
 *
 * The input stream contains an entire MIME formatted message with
 * headers and data.
 *
 * @param session    Session object for this message
 * @param is    the message input stream
 * @exception    MessagingException for failures
 */
public MimeMessage(Session session, InputStream is) 
    throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: javax.mail/javax.mail-api

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param    folder    the Folder this message is from
 * @param    msgnum    the number of this message
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: com.sun.mail/mailapi

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param    folder    the Folder this message is from
 * @param    msgnum    the number of this message
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: com.sun.mail/jakarta.mail

/**
 * Constructs an empty MimeMessage object with the given Folder
 * and message number. <p>
 *
 * This method is for providers subclassing <code>MimeMessage</code>.
 *
 * @param    folder    the Folder this message is from
 * @param    msgnum    the number of this message
 */
protected MimeMessage(Folder folder, int msgnum) {
super(folder, msgnum);
flags = new Flags();  // empty Flags object
saved = true;
initStrict();
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: com.sun.mail/jakarta.mail

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 *
 * @param    session    the Sesssion
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 *
 * @param    session    the Sesssion
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

/**
 * Default constructor. An empty message object is created.
 * The <code>headers</code> field is set to an empty InternetHeaders
 * object. The <code>flags</code> field is set to an empty Flags
 * object. The <code>modified</code> flag is set to true.
 *
 * @param    session    the Sesssion
 */
public MimeMessage(Session session) {
super(session);
modified = true;
headers = new InternetHeaders();
flags = new Flags();	// empty flags object
initStrict();
}

相关文章

MimeMessage类方法