I guess the correct syntax would be:
@Put("xml")
public void store(Document doc) {
...
}
Same goes for @Get annotation.
You can get a list of supported out-of-the-box extensions here
http://www.restlet.org/documentation/2.0/jse/api/org/restlet/service/MetadataService.html#addCommonExtensions()
And use the values there as (String) parameters to the annotations.
On Fri, Oct 30, 2009 at 12:11 PM, Jerome Louvel
<
[hidden email]> wrote:
--
Fabián Mandelbaum
IS Engineer
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2413035