Hello,
you can get the client's preferences via the
request#clientInfo#getAcceptedLanguages method, and treat these preferences
manually. Another solution is to rely on the content negotiation algorithm that
helps to find the best variant that fits the client preferences (in terms of
media ty
opps, I have to finish my mail.
I send you a sample HelloWorldResource that :
- declares the supported variants via a "variants" attribute.
- generates the right representation via the overriden get(Variant) method.
Best regards,
Thierry Boileau
good guideline.
Thank you, Thierry Boileau
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649387
3 matches
Mail list logo