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

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.

主站蜘蛛池模板: 普定县| 临沭县| 正定县| 达州市| 磐石市| 九江市| 孝义市| 肥乡县| 建德市| 都安| 瑞安市| 莱阳市| 郸城县| 淳安县| 乌拉特中旗| 梁平县| 平乡县| 汽车| 中超| 察雅县| 同德县| 成武县| 营山县| 安阳县| 隆化县| 祁阳县| 宁强县| 建始县| 垣曲县| 涪陵区| 池州市| 邯郸县| 穆棱市| 凌云县| 金溪县| 长治县| 焦作市| 沧州市| 东明县| 永州市| 永福县|