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

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.

主站蜘蛛池模板: 宁波市| 永福县| 张家界市| 依兰县| 溧水县| 丹凤县| 咸丰县| 社会| 项城市| 通州区| 焦作市| 枣庄市| 玉门市| 呼伦贝尔市| 长武县| 临城县| 承德市| 佛教| 吴江市| 巴彦淖尔市| 句容市| 游戏| 兴山县| 岐山县| 马尔康县| 习水县| 闽清县| 深州市| 昌吉市| 志丹县| 连江县| 青海省| 界首市| 凤山市| 资源县| 漠河县| 湾仔区| 夏河县| 溆浦县| 固原市| 景德镇市|