热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

javax.mail.search.BodyTerm.matchPart()方法的使用及代码示例

本文整理了Java中javax.mail.search.BodyTerm.matchPart()方法的一些代码示例,展示了BodyTerm.matchPart()的具体用法。这些代码示例主要来源于Gi

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

BodyTerm.matchPart介绍

[英]Search all the parts of the message for any text part that matches the pattern.
[中]在邮件的所有部分中搜索与模式匹配的任何文本部分。

代码示例

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

public boolean match(Message message) {
try {
return matchPart(message);
} catch (IOException e) {
return false;
} catch (MessagingException e) {
return false;
}
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
public boolean match(Message msg) {
return matchPart(msg);
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
public boolean match(Message msg) {
return matchPart(msg);
}

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

public boolean match(Message message) {
try {
return matchPart(message);
} catch (IOException e) {
return false;
} catch (MessagingException e) {
return false;
}
}

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

/**
* The match method.
*
* @param msg The pattern search is applied on this Message's body
* @return true if the pattern is found; otherwise false
*/
@Override
public boolean match(Message msg) {
return matchPart(msg);
}

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

private boolean matchPart(Part part) throws MessagingException, IOException {
if (part.isMimeType("multipart/*")) {
Multipart mp = (Multipart) part.getContent();
int count = mp.getCount();
for (int i=0; i BodyPart bp = mp.getBodyPart(i);
if (matchPart(bp)) {
return true;
}
}
return false;
} else if (part.isMimeType("text/*")) {
String cOntent= (String) part.getContent();
return super.match(content);
} else if (part.isMimeType("message/rfc822")) {
// nested messages need recursion
return matchPart((Part)part.getContent());
} else {
return false;
}
}
}

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

int count = mp.getCount();
for (int i = 0; i if (matchPart(mp.getBodyPart(i)))
return true;
} else if (p.isMimeType("message/rfc822")) {
return matchPart((Part)p.getContent());

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

private boolean matchPart(Part part) throws MessagingException, IOException {
if (part.isMimeType("multipart/*")) {
Multipart mp = (Multipart) part.getContent();
int count = mp.getCount();
for (int i=0; i BodyPart bp = mp.getBodyPart(i);
if (matchPart(bp)) {
return true;
}
}
return false;
} else if (part.isMimeType("text/*")) {
String cOntent= (String) part.getContent();
return super.match(content);
} else {
return false;
}
}
}

推荐阅读
author-avatar
D之phper
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有