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

HR email handler

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

public class HREmailHandler extends MainEmailHandler {

protected String[] assignedKeyWords() {
// setup keywords for the receiver team
return new String[]{"career", "job", "faculty"};
}

@Override
protected String[] keyWords() {
return new String[0];
}

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

@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {

}
}

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

主站蜘蛛池模板: 修武县| 祁连县| 大宁县| 平塘县| 濮阳县| 辽宁省| 灵石县| 武义县| 巴林右旗| 隆化县| 罗江县| 瑞金市| 华池县| 江山市| 太白县| 涡阳县| 洛浦县| 瑞安市| 屏山县| 平山县| 建湖县| 小金县| 永修县| 电白县| 琼海市| 乌海市| 新昌县| 睢宁县| 微山县| 漳浦县| 永嘉县| 江津市| 安阳县| 肇州县| 平乐县| 定日县| 建水县| 泰安市| 阆中市| 上栗县| 革吉县|