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

Finance email handler

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

public class FinanceEmailHandler extends MainEmailHandler {

protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"financial", "student aid", "tuition"};
}

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

@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {

}
}

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

主站蜘蛛池模板: 和田市| 亳州市| 揭阳市| 亚东县| 浦东新区| 怀集县| 静安区| 聂拉木县| 宝应县| 海南省| 峨边| 大安市| 翁源县| 石渠县| 锡林郭勒盟| 上思县| 漠河县| 会昌县| 黄梅县| 江永县| 四川省| 太湖县| 遂昌县| 如东县| 山阴县| 阿克| 石屏县| 肃北| 安化县| 福清市| 修文县| 沂源县| 武功县| 苍溪县| 德兴市| 宁武县| 霸州市| 麻栗坡县| 夏津县| 兰坪| 婺源县|