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

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

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

MimeBodyPart.invalidateContentHeaders介绍

暂无

代码示例

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. public void setDataHandler(DataHandler dh)
  12. throws MessagingException {
  13. this.dh = dh;
  14. cachedContent = null;
  15. MimeBodyPart.invalidateContentHeaders(this);
  16. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. public synchronized void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. public void setDataHandler(DataHandler dh)
  12. throws MessagingException {
  13. this.dh = dh;
  14. cachedContent = null;
  15. MimeBodyPart.invalidateContentHeaders(this);
  16. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. public void setDataHandler(DataHandler dh)
  12. throws MessagingException {
  13. this.dh = dh;
  14. cachedContent = null;
  15. MimeBodyPart.invalidateContentHeaders(this);
  16. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException
  11. */
  12. public synchronized void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException
  11. */
  12. public synchronized void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this body part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this body part is
  9. * obtained from a READ_ONLY folder.
  10. */
  11. @Override
  12. public void setDataHandler(DataHandler dh)
  13. throws MessagingException {
  14. this.dh = dh;
  15. cachedContent = null;
  16. MimeBodyPart.invalidateContentHeaders(this);
  17. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

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

  1. /**
  2. * This method provides the mechanism to set this part's content.
  3. * The given DataHandler object should wrap the actual content.
  4. *
  5. * @param dh The DataHandler for the content.
  6. * @exception IllegalWriteException if the underlying
  7. * implementation does not support modification
  8. * @exception IllegalStateException if this message is
  9. * obtained from a READ_ONLY folder.
  10. * @exception MessagingException for other failures
  11. */
  12. @Override
  13. public synchronized void setDataHandler(DataHandler dh)
  14. throws MessagingException {
  15. this.dh = dh;
  16. cachedContent = null;
  17. MimeBodyPart.invalidateContentHeaders(this);
  18. }

相关文章