Alex,
> Sufficient to fix my current problem but the fact that it doesn't know
> by default what extension to given application/xml.
The problem is that ".xml" already maps to "text/xml"...
> I would expect restlet to handle this without a custom service.
>
> Similarly, and would expect the ability to configure
> restlet's media type mappings to work without a custom service.
Actually, you don't need a subclass, just do this:
myApp.getMetadataService().addExtension("xml", MediaType.APPLICATION_XML);
That will override the default mapping.
Best regards,
Jerome