Hi Valdis,
It’s taking a while, but I’m getting to your issue J I have just fixed all the ‘object’ converters to properly handle local serialization/deserialization. I’ve tested it successfully using the attached class. It should work with your annotated resources now. Please let me know when you get a chance to play with the next snapshot/release. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : Valdis Rigdon [mailto:valdis.rig...@gmail.com] Envoyé : dimanche 21 février 2010 16:41 À : discuss@restlet.tigris.org Objet : Re: RIAP protocol and "local" Representions Is doing something like this possible when using the annotated client-side interfaces? I've had to put this work to the side, but I'm planning on getting back to it in a few weeks. If I remember correctly, I ended up registering a RIAP ConverterService which detected if the request was made using the RIAP protocol and then used a custom Representation to just hold the Object instance. Valdis On Feb 21, 2010, at 9:22 AM, Jerome Louvel wrote: Hi Valdis, It does work out of the box. If you specify that you prefer MediaType.APPLICATION_JAVA_OBJECT as a RIAP client, then the converter service with return an ObjectRepresentation instance wrapping your local object as indicated by Thierry. Then you can directly retrieve the local object *without* any serialization/deserialization by doing: MyObject myObj = (MyObject) ((ObjectRepresentation)myEntity).getObject(); Hope this helps! Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : Rob Heittman [mailto:rob.heitt...@solertium.com] Envoy馮bsp;: lundi 25 janvier 2010 15:42 : discuss@restlet.tigris.org Objet : Re: RIAP protocol and "local" Representions We use a lot of RIAP but very little ConverterService ... that might change if it worked more like you expect out of the box. On Mon, Jan 25, 2010 at 2:17 PM, Valdis Rigdon <valdis.rig...@gmail.com> wrote: Is no one else using RIAP in this way? Or are people using RIAP and letting objects be serialized locally? ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2464833
Converter.java
Description: Binary data