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

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

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

MimeMessage.isSet介绍

[英]Check whether the flag specified in the flag argument is set in this message.

This implementation checks this message's internal flags object.
[中]检查此消息中是否设置了flag参数中指定的标志。
此实现检查此邮件的内部flags对象。

代码示例

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

/**
 * Test if the given Flags are set in this message.
 */
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
@Override
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

代码示例来源:origin: greenmail-mail-test/greenmail

public boolean isSet(Flags.Flag flag) {
  try {
    return getMimeMessage().isSet(flag);
  } catch (MessagingException e) {
    throw new IllegalStateException("Can not access flag " + flag, e);
  }
}

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

/**
 * Check whether the supplied flag is set.
 * The default implementation checks the flags returned by {@link #getFlags()}.
 *
 * @param flag the flags to check for
 * @return true if the flags is set
 * @throws MessagingException if there was a problem accessing the Store
 */
public synchronized boolean isSet(Flags.Flag flag) throws MessagingException {
  // load the flags, if needed
  loadFlags();
  return super.isSet(flag);
}

代码示例来源:origin: org.apache.james/james-server-core-library

/**
 * @see javax.mail.Message#isSet(javax.mail.Flags.Flag)
 */
public boolean isSet(Flags.Flag flag) throws MessagingException {
  return getWrappedMessage().isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
@Override
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
@Override
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
@Override
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

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

/**
 * Test if the given Flags are set in this message.
 */
@Override
public synchronized boolean isSet(Flags.Flag flag)
      throws MessagingException {
checkExpunged();
loadFlags();
return super.isSet(flag);
}

相关文章

MimeMessage类方法