Hi

You probably want to set an Accept-Language header, and one way to do it is
to use jarrs:languageMappings element, ex

<jaxrs:languageMappings>
      <entry key="en" value="en-us"/>
      <!-- other entries for chineese, etc -->
</jaxrs:languageMappings>

and then append .en, etc to the URI, ex
GET /resource.en

Next, you can use an HttpHeaders context to get the value of the expected
language and return an appropriate Response

cheers, Sergey


On Tue, Mar 23, 2010 at 11:47 AM, SaravananRamamoorthy <
[email protected]> wrote:

>
> Hi All,
>
> Does JAX-RS support multiple language?
> Can we able to inject the chinese langues using queryparam?
>
> Please guide me to trigger out the solution.
>
> Regards
> Saravanan Ramamoorthy
> --
> View this message in context:
> http://old.nabble.com/multi-language-support-in-cxf-tp27999720p27999720.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to