Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can Someone say how can I serialize each mail object separately? And also want advice to do the rest as well. (I have already completed
Can Someone say how can I serialize each mail object separately? And also want advice to do the rest as well. (I have already completed the Java sending functionality . Now I want to code the java receiving functionality according to above guidelines) . I used Java Mail Api
1. Continously check and retrieve new emails 2. Emails retrieved from the server should be converted into Email objects and serialized into the hard drive (each object should be serialized separately). 3. Whenever an email is received, the email receiver should notify an EmailStatRecorder object and an EmailStatPrinter object. Upon receiving the notification from the email receiver, EmailStatRecorder prints the following message to the console "an email is received at current time)". EmailStatPrinter prints the same message to a text file in the hard disk. The communication between the email receiver and EmailStatPrinter/EmailStatRecorder should be implemented using observer/observable concept. Email receiver should have only ONE list of observers. 1. Continously check and retrieve new emails 2. Emails retrieved from the server should be converted into Email objects and serialized into the hard drive (each object should be serialized separately). 3. Whenever an email is received, the email receiver should notify an EmailStatRecorder object and an EmailStatPrinter object. Upon receiving the notification from the email receiver, EmailStatRecorder prints the following message to the console "an email is received at current time)". EmailStatPrinter prints the same message to a text file in the hard disk. The communication between the email receiver and EmailStatPrinter/EmailStatRecorder should be implemented using observer/observable concept. Email receiver should have only ONE list of observersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started