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 type and languages). Let's say my HelloWorldResource is able to generate 
a text representation, in both french and english. It has to declare the list 
of supported variants, and generate the right representation accorded to the 
chosen variant :

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649279

Reply via email to