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

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.

主站蜘蛛池模板: 荥阳市| 德安县| 额尔古纳市| 龙里县| 界首市| 噶尔县| 林州市| 喀喇沁旗| 博湖县| 河津市| 应用必备| 竹山县| 庄浪县| 广丰县| 莱芜市| 舟曲县| 依兰县| 仁化县| 江达县| 阿拉善右旗| 都昌县| 梧州市| 张掖市| 武定县| 福贡县| 博客| 玉田县| 阿克陶县| 交城县| 乐清市| 兴国县| 驻马店市| 万源市| 大竹县| 上高县| 永和县| 健康| 洞口县| 博乐市| 阳新县| 虎林市|