Hi, Am Freitag, den 23.05.2008, 21:34 +0200 schrieb Tobias Bocanegra: > On 5/23/08, Lars Trieloff <[EMAIL PROTECTED]> wrote: > <snip /> > > the general idea is not to break the current API, so that HtmlResponse > > stays the default, but that users sending a JSON request will get a JSON > > response, unless they explicitly request a different responseType using the > > Accept header. > > does it really make sense to add all those types to the default post > servlet? can you reuse any code of the servlet? if it's just an > 'import' i would go for the "import" operation as paul suggested. > > if the code is very different from the default post servlet, i would > create individual ones, that decline service if the headers do not > match (felix: this is possible, right?)
Theoretically, this would be possible, but then you would loose the option to share functionality. If I understand Lars correctly, he would propose to make the transfer format of request and response data flexible while keeping the internal processing format independent. I think this is really a good idea. Regarding the JSON (and XML) roundtripping: I agree with Toby here, that for roundtripping of content exports generated by the default GET servlets (which can be seen as an export), we should go for the :import operation Paul Noden is working on. Regards Felix > > regards, toby
