April 2019
Intermediate to advanced
360 pages
9h 17m
English
The AdminEmailHandler class extends the MainEmailHandler class. Unlike the other classes, it does not assign any keywords specific to the admin email handler. If an email is sent to this handler, the last one in the chain of responsibility, it will process the email and inform the user via the processEmailFinal() method:
public class AdminEmailHandler extends MainEmailHandler { protected String[] keyWords() { // Here it does not matter what the keywords are return new String[0]; } protected void processEmailFinal(String emailText) { System.out.println("The Admin Team processed the email."); } @Override public void setNextEmailHandler(UniversityEmailHandler emailHandler) { }}
The processEmailFinal() method just shown informs ...
Read now
Unlock full access