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

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.

主站蜘蛛池模板: 甘肃省| 恭城| 资阳市| 桂平市| 汉中市| 当雄县| 霸州市| 东宁县| 平阴县| 七台河市| 保山市| 饶阳县| 古丈县| 汤阴县| 黔西县| 晴隆县| 尼玛县| 慈利县| 洪洞县| 泗水县| 确山县| 海南省| 丹棱县| 娄烦县| 新津县| 阳山县| 阳江市| 邹平县| 乌兰浩特市| 乐安县| 元氏县| 湘潭市| 红桥区| 仲巴县| 嫩江县| 武定县| 蓬安县| 清水河县| 桂林市| 武邑县| 宜城市|