RE: Re: Accept header sent by the client not being taken into account (2.0 snapshot from July 9th, 2009)

2009-07-21 Thread Jerome Louvel
Hi Tal, Could you send us a Zip of your test project so we can debug? Of the three option, only @Get(xml) is valid. It should expose both text/xml and application/xml variants automatically. The logic you added in doInit() shouldn't be necessary. See the attached sample code which works for

RE: Re: Accept header sent by the client not being taken into account (2.0 snapshot from July 9th, 2009)

2009-07-17 Thread Tal Friedman
I've been having the same problem as Fabian. The annotation way of doing things is still not working for me, and I'm getting strange results with manually specifying the variants. I'm running the snapshot I downloaded yesterday (Engine.VERSION_HEADER=Noelios-Restlet-Engine/2.0snapshot) I get

Accept header sent by the client not being taken into account (2.0 snapshot from July 9th, 2009)

2009-07-10 Thread Fabian Mandelbaum
Hello there, still with my content negotiation issues (which worked great and simple in restlet 1.1.x series, I've just checked the Variant's media type and acted according to its value, which just matched the client's expectations...) I've downloaded 2.0 snapshot from yesterday (July 9th, 2009)

Re: Accept header sent by the client not being taken into account (2.0 snapshot from July 9th, 2009)

2009-07-10 Thread Fabian Mandelbaum
Hello Thierry, thanks a lot for your ideas, first one worked, so I didn't event try the 2nd one. BTW, indeed I realized (after writing my mail, sorry) that I wasn't declaring the supported variants, like in Restlet 1.1.x I've opted for the first solution because in principle it should be less