RE: Restlet have messages.properties like Spring ?

2010-08-20 Thread Thierry Boileau
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

RE: Restlet have messages.properties like Spring ?

2010-08-20 Thread Thierry Boileau
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

RE: Restlet have messages.properties like Spring ?

2010-08-21 Thread webpost
good guideline. Thank you, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649387