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

Alumni email handler

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

public class AlumniEmailHandler extends MainEmailHandler {

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

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

@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {

}
}

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

主站蜘蛛池模板: 山东省| 定日县| 霍邱县| 安达市| 闵行区| 北川| 丽江市| 修武县| 来凤县| 通化县| 江永县| 海伦市| 伊川县| 盐边县| 中超| 通榆县| 仪陇县| 静海县| 灵石县| 衡山县| 高安市| 五常市| 科尔| 准格尔旗| 阳信县| 庐江县| 社旗县| 资溪县| 涿鹿县| 西乌| 峨眉山市| 嘉禾县| 古田县| 积石山| 铁岭市| 兴义市| 湄潭县| 彰武县| 奇台县| 田阳县| 永春县|