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

Academic email handler

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

public class AcademicEmailHandler extends MainEmailHandler {

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

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

@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {

}
}

The processEmailFinal() method of the AcademicEmailHandler class shown informs the user that the academic email handler took care of the received email.

主站蜘蛛池模板: 江北区| 襄樊市| 电白县| 尖扎县| 青州市| 沂南县| 常山县| 密山市| 五大连池市| 连云港市| 建平县| 昔阳县| 福海县| 洛扎县| 清丰县| 锡林浩特市| 尼勒克县| 彝良县| 鱼台县| 台南县| 全椒县| 乐东| 昌邑市| 景谷| 剑川县| 乐业县| 苏州市| 阿拉善左旗| 京山县| 霍州市| 女性| 漳州市| 临清市| 乐都县| 白沙| 丰镇市| 平顺县| 密山市| 石柱| 吉木萨尔县| 昌吉市|