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

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.

主站蜘蛛池模板: 蒲城县| 周宁县| 木里| 体育| 葫芦岛市| 于田县| 裕民县| 疏勒县| 达拉特旗| 左权县| 阳城县| 神农架林区| 罗城| 玉树县| 吴桥县| 都江堰市| 孝义市| 井冈山市| 涟水县| 株洲市| 宝清县| 永登县| 恩平市| 临朐县| 塔河县| 运城市| 阳江市| 临洮县| 毕节市| 兴安县| 孟州市| 宽甸| 平原县| 新巴尔虎右旗| 楚雄市| 平安县| 铜陵市| 神农架林区| 田东县| 商都县| 扶余县|