|
Assignments
> Assignment n.5 > in depth
|
|
Assignment n.5
|
Delivery deadline: midnight of Sunday, Oct.21
"Document” is custom class (i.e. a class that you build), which contains a text (implemented as an ordered collection of strings). It has methods "addString" (which appenda a String at the end of the Document) and a method "toString" (which overrides the toString method of the Object class), useful to print out the whole Document.
A server shows a remote method “validate” with a parameter of type Document. The method adds the string "Validated on "+date in the Document.
A client will create a Document, and ask the server to add the timestamp. At the end the client prints the content of the Document, which of course will have to contain the validation.
NOTE: Before embarking in the project execution, I strongly suggest to follow the Oracle tutorial on Java RMI: http://docs.oracle.com/javase/tutorial/rmi/overview.html
Also the following tutorial may be useful: https://www.tutorialspoint.com/java_rmi/index.htm.
|
|
|