本文整理了Java中javax.mail.internet.MimeMessage.getMatchingHeaderLines()
方法的一些代码示例,展示了MimeMessage.getMatchingHeaderLines()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.getMatchingHeaderLines()
方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:getMatchingHeaderLines
[英]Get 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 matching header-lines.
*/
@SuppressWarnings("unchecked")
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Get all matching header-lines.
*/
@Override
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* @see javax.mail.internet.MimePart#getMatchingHeaderLines(java.lang.String[])
*/
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException {
return getWrappedMessage().getMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException {
// make sure the headers are loaded
loadHeaders();
// allow the super class to handle everything from here
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Get all matching header-lines.
*/
@Override
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Get all matching header-lines.
*/
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Get all matching header-lines.
*/
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Get all matching header-lines.
*/
@Override
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Get all matching header-lines.
*/
@Override
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Get all matching header-lines.
*/
@Override
public Enumeration<String> getMatchingHeaderLines(String[] names)
throws MessagingException {
checkExpunged();
loadHeaders();
return super.getMatchingHeaderLines(names);
}
代码示例来源:origin: org.mnode.mstor/mstor
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
public Enumeration<String> getMatchingHeaderLines(final String[] names)
throws MessagingException {
InternetHeaders headers = getHeaders();
if (headers != null) {
return (Enumeration<String>) headers.getMatchingHeaderLines(names);
}
checkParse();
return (Enumeration<String>) super.getMatchingHeaderLines(names);
}
代码示例来源:origin: mguessan/davmail
public Enumeration getMatchingHeaderLines(String[] headerNames) throws MessagingException, IOException {
Enumeration result = getMatchingHeaderLinesFromHeaders(headerNames);
if (result == null) {
if (headerNames == null) {
result = getMimeMessage().getAllHeaderLines();
} else {
result = getMimeMessage().getMatchingHeaderLines(headerNames);
}
}
return result;
}
代码示例来源:origin: greenmail-mail-test/greenmail
} else if (sectionSpecifier.startsWith("HEADER.FIELDS ")) {
String[] includeNames = extractHeaderList(sectionSpecifier, "HEADER.FIELDS ".length());
Enumeration<?> inum = mimeMessage.getMatchingHeaderLines(includeNames);
addHeaders(inum, response, partial);
} else if (sectionSpecifier.endsWith("MIME")) {
内容来源于网络,如有侵权,请联系作者删除!