官术网_书友最值得收藏!

Advising email handler

The AdvisingEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the advising email handler and contains the processEmailFinal() method:

public class AdvisingEmailHandler extends MainEmailHandler {

protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"advising", "schedule", "course"};
}

protected void processEmailFinal(String emailText) {
System.out.println("The Advising Team processed the email.");
}

@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {

}
}

The processEmailFinal() method just shown informs the user that the advising email handler took care of the received email.

主站蜘蛛池模板: 德化县| 应用必备| 筠连县| 瑞安市| 广宁县| 东阳市| 丹寨县| 信丰县| 海口市| 清原| 阳泉市| 永定县| 建始县| 闽清县| 禹城市| 保靖县| 南阳市| 鲁山县| 东海县| 朝阳市| 莎车县| 通海县| 吴川市| 宣武区| 阳东县| 呼伦贝尔市| 将乐县| 武定县| 榕江县| 施甸县| 交口县| 梁河县| 神池县| 名山县| 嵊州市| 康定县| 新和县| 龙州县| 尉犁县| 北宁市| 武义县|