Jerome Louvel wrote:
Very nice work Chris. I recommend people to watch this sample app closely.
The code which is well designed and nicely covers all the important Restlet
concepts including negotiation of resource representations.

Great, glad it wasn't too far off the mark.

I'm going to learn a lot by looking at the way you used the API, cool. For
now, just a quick remark: there is a com.noelios.restlet.util.XmlWriter
class based on David Megginson's work (SAX) that you could have reused for
serialization.

That XML serializer class was just a little thing I copy-n-pasted from another project that uses embedded Java so big libraries (like dom4j) were out of the question. The "real application" will probably serialize the XML more rigorously, although hopefully without the heavyweight stuff that usually accompanies Java + XML.

That said, I'll take a look at the XmlWriter class you mentioned. Always looking for new stuff to borrow :-)

Another note: you probably noticed I didn't use the Fluent Builder pattern for creating the site. I actually found it a little too hard to read. As a result I started thinking about doing it XML (horrors!) but decided that building in more explicit code was better. I think it turned out okay.

I'm going to add some write/update/delete capabilities to this soonish.

Chris

--
Chris Winters ([EMAIL PROTECTED])
Lead Software Developer
Vocollect Healthcare Systems

CONFIDENTIAL, PRIVILEGED COMMUNICATION: This e-mail is private and intended for the addressee(s) only. It may contain privileged and/or confidential information. If you have received it in error you are not authorized to disseminate it in any manner; please delete it and any copies and reply to the sender that it was misdirected.

Reply via email to