javax.mail.Multipart.setParent()方法的使用及代码示例

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

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

Multipart.setParent介绍

[英]Set the parent of this Multipart to be the specified Part. Normally called by the Message or BodyPart``setContent(Multipart) method. parent may be null if the Multipart is being removed from its containing Part.
[中]将此Multipart的父项设置为指定的Part。通常由Message或[$3$]setContent(Multipart)方法调用。如果Multipart正在从其包含的Part中删除,则parent可能是null

代码示例

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException for other failures
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException for other failures
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec

public void setContent(Multipart part) throws MessagingException {
  setDataHandler(new DataHandler(part, part.getContentType()));
  part.setParent(this);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec

public void setContent(Multipart part) throws MessagingException {
  setDataHandler(new DataHandler(part, part.getContentType()));
  part.setParent(this);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec

public void setContent(Multipart part) throws MessagingException {
  setDataHandler(new DataHandler(part, part.getContentType()));
  part.setParent(this);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec

public void setContent(Multipart part) throws MessagingException {
  setDataHandler(new DataHandler(part, part.getContentType()));
  part.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException for other failures
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException
 */
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException for other failures
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the body part's content to a Multipart object.
 *
 * @param  mp          The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values.
 * @exception    IllegalStateException if this body part is
 *            obtained from a READ_ONLY folder.
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

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

/**
 * This method sets the Message's content to a Multipart object.
 *
 * @param  mp      The multipart object that is the Message's content
 * @exception       IllegalWriteException if the underlying
 *            implementation does not support modification of
 *            existing values
 * @exception    IllegalStateException if this message is
 *            obtained from a READ_ONLY folder.
 * @exception       MessagingException for other failures
 */
@Override
public void setContent(Multipart mp) throws MessagingException {
setDataHandler(new DataHandler(mp, mp.getContentType()));
mp.setParent(this);
}

相关文章