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

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.

主站蜘蛛池模板: 浙江省| 东乌| 房山区| 黄龙县| 克山县| 临桂县| 本溪市| 昭觉县| 辽阳市| 大新县| 威远县| 花莲县| 忻州市| 常熟市| 兖州市| 仲巴县| 禄劝| 昭苏县| 曲周县| 容城县| 晋城| 新竹市| 北碚区| 泾川县| 夏河县| 霍山县| 长子县| 巴彦县| 武宁县| 萍乡市| 图们市| 偏关县| 乐都县| 北流市| 沛县| 商洛市| 井冈山市| 平定县| 开江县| 安庆市| 东宁县|