本文整理了Java中javax.mail.internet.MimeMessage.getNonMatchingHeaderLines()
方法的一些代码示例,展示了MimeMessage.getNonMatchingHeaderLines()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.getNonMatchingHeaderLines()
方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:getNonMatchingHeaderLines
[英]Get non-matching header lines as an Enumeration of Strings. A Header line is a raw RFC 822 header-line, containing both the "name" and "value" field.
[中]获取不匹配的标题行作为字符串枚举。标题行是原始RFC 822标题行,包含“名称”和“值”字段。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Get all non-matching headerlines.
*/
@SuppressWarnings("unchecked")
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Get all non-matching headerlines.
*/
@Override
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: camunda/camunda-bpm-platform
Enumeration<String> hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os);
while (hdrLines.hasMoreElements())
代码示例来源:origin: com.sun.mail/javax.mail
Enumeration<String> hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os, allowutf8);
while (hdrLines.hasMoreElements())
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* Get an InputStream which holds all headers of the given MimeMessage
*
* @param message the MimeMessage used as source
* @param ignoreList the String[] which holds headers which should be ignored
* @return stream the InputStream which holds the headers
* @throws MessagingException
*/
@SuppressWarnings("unchecked")
public static InputStream getHeadersInputStream(MimeMessage message, String[] ignoreList) throws MessagingException {
return new InternetHeadersInputStream(message.getNonMatchingHeaderLines(ignoreList));
}
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* @see javax.mail.internet.MimePart#getNonMatchingHeaderLines(java.lang.String[])
*/
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException {
return getWrappedMessage().getNonMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException {
// make sure the headers are loaded
loadHeaders();
// allow the super class to handle everything from here
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* Write the message headers to the given outputstream
*
* @param message the MimeMessage to read from
* @param headerOs the OutputStream to which the headers get written
* @param ignoreList the String[] which holds headers which should be ignored
* @throws MessagingException
*/
private static void writeHeadersTo(MimeMessage message, OutputStream headerOs, String[] ignoreList) throws MessagingException {
//Write the headers (minus ignored ones)
Enumeration headers = message.getNonMatchingHeaderLines(ignoreList);
writeHeadersTo(headers, headerOs);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Get all non-matching headerlines.
*/
@Override
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Get all non-matching headerlines.
*/
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Get all non-matching headerlines.
*/
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Get all non-matching headerlines.
*/
@Override
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Get all non-matching headerlines.
*/
@Override
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Get all non-matching headerlines.
*/
@Override
public Enumeration<String> getNonMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: org.mnode.mstor/mstor
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
public Enumeration<String> getNonMatchingHeaderLines(final String[] names)
throws MessagingException {
InternetHeaders headers = getHeaders();
if (headers != null) {
return (Enumeration<String>) headers.getNonMatchingHeaderLines(names);
}
checkParse();
return (Enumeration<String>) super.getNonMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/android-mail
Enumeration<String> hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os, allowutf8);
while (hdrLines.hasMoreElements())
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
Enumeration hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os);
while (hdrLines.hasMoreElements())
代码示例来源:origin: javax.mail/com.springsource.javax.mail
Enumeration hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os);
while (hdrLines.hasMoreElements())
代码示例来源:origin: javax.mail/javax.mail-api
Enumeration<String> hdrLines = getNonMatchingHeaderLines(ignoreList);
LineOutputStream los = new LineOutputStream(os, allowutf8);
while (hdrLines.hasMoreElements())
代码示例来源:origin: greenmail-mail-test/greenmail
} else if (sectionSpecifier.startsWith("HEADER.FIELDS.NOT")) {
String[] excludeNames = extractHeaderList(sectionSpecifier, "HEADER.FIELDS.NOT".length());
Enumeration<?> inum = mimeMessage.getNonMatchingHeaderLines(excludeNames);
addHeaders(inum, response, partial);
} else if (sectionSpecifier.startsWith("HEADER.FIELDS ")) {
内容来源于网络,如有侵权,请联系作者删除!