- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 89字
- 2021-06-24 14:58:03
Academic email handler
The AcademicEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the academic email handler and contains the processEmailFinal() method:
public class AcademicEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"academic"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Academic Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method of the AcademicEmailHandler class shown informs the user that the academic email handler took care of the received email.
推薦閱讀
- Word 2010中文版完全自學手冊
- Spark快速大數據分析(第2版)
- 正則表達式必知必會
- 大數據導論
- UDK iOS Game Development Beginner's Guide
- 城市計算
- 數據庫原理與應用(Oracle版)
- Proxmox VE超融合集群實踐真傳
- Unreal Engine Virtual Reality Quick Start Guide
- The Natural Language Processing Workshop
- R Machine Learning Essentials
- 數據庫查詢優化器的藝術:原理解析與SQL性能優化
- 算力經濟:從超級計算到云計算
- Unity Game Development Blueprints
- 大數據隱私保護技術與治理機制研究