Re: Re: org.restlet.lib.com.google.protobuf

2011-05-29 Thread Thierry Boileau
Hello Ishaak, that's a good question. The types of representations exchanged between the client and the server are negociated according to headers specified by the request. Let's have a quick dive into HTTP. When a client want a specific kind of representation, it completes the accept header with

Re: Re: org.restlet.lib.com.google.protobuf

2011-05-29 Thread Tim Peierls
Thierry, This reminds me of a question I've been meaning to ask. I've been using a hand-rolled utility method to replace standard converters with my custom extensions, e.g., JacksonConverter with LocalJacksonConverter: public static void replaceConverter( Class? extends

Re: Re: org.restlet.lib.com.google.protobuf

2011-05-29 Thread Tim Peierls
On Sun, May 29, 2011 at 1:08 PM, Tim Peierls t...@peierls.net wrote: I've been using a hand-rolled utility method to replace standard converters with my custom extensions, e.g., JacksonConverter with LocalJacksonConverter: Whoops, code snippet was incomplete: public static void

Re: Re: org.restlet.lib.com.google.protobuf

2011-05-29 Thread Thierry Boileau
Hello Tim, thanks for reporting this. I guess you're quite interested in this RFE? http://restlet.tigris.org/issues/show_bug.cgi?id=1093. Best regards, Thierry Boileau I've been using a hand-rolled utility method to replace standard converters with my custom extensions, e.g.,

RE: Re: org.restlet.lib.com.google.protobuf

2011-05-27 Thread Ishaaq Chandy
Thanks Thierry! Got a follow up question now though. I was looking at documentation at http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/299-restlet.html, trying to figure out how to ensure that my protobuf based converter/representation is used by my Client/ServerResource classes.