Hi Alex, Great work! I've updated the description of this integration in the community wiki: http://wiki.restlet.org/community/123-restlet.html
If anyone wants to mention other Restlet integrations, please feel free to do like Alex. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : ale...@milowski.com [mailto:ale...@milowski.com] De la part de Alex Milowski Envoyé : jeudi 3 juin 2010 14:50 À : discuss@restlet.tigris.org Objet : Updated eXist Restlet Integration I've updated the eXist Restlet integration available at: http://code.google.com/p/existdb-contrib/ I've moved the code forward to the latest eXist (1.4 or the trunk) and I've updated it to be compatible with the forthcoming Restlet 2.0 release. It now uses the 2.0RC4 version. If you've thought about using an embedded XML database and may be considering eXist, you might want to try out this integration. In this iteration, I've removed the "exist" protocol as RIAP seems much more appropriate and flexible. Besides, as an embedded database, your application really isn't a client anyway. The essential bit is now that you attached the property resource to the internal router (or wherever you want): getInternalRouter().attach("/exist/",XMLDBResource.class).getTemplate().setM atchingMode(Template.MODE_STARTS_WITH); For example, to get a document from an embedded version of eXist, you simply make a reference using their RIAP scheme: riap://component/exist/db/doc.xml the actual code to "GET" the document is: Response response = getContext().getClientDispatcher().handle(new Request(Method.GET,"riap://component/exist/db/doc.xml")); Similarly, to query a document: MediaType queryType = MediaType.valueOf("application/xquery"); Request queryRequest = new Request(Method.POST,"riap://component/exist/db/doc.xml"); queryRequest.setEntity(new StringRepresentation("<doc><{//a}</doc>",queryType)); Response response = getContext().getClientDispatcher().handle(queryRequest); For a full description of how to use this integration, visit: http://code.google.com/p/existdb-contrib/wiki/Restlet You can download a version using eXist 1.5/trunk + Restlet 2.0RC4 here: http://code.google.com/p/existdb-contrib/downloads/detail?name=exist-restlet -2007-06-10.zip This is somewhat an "alpha" release. It should stabilize soon, especially as Restlet 2.0 and eXis 1.5 become official releases. Feedback, comments, suggestions, etc. are all welcome. --Alex Milowski ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=26164 29 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2629075