Hi Jakub,
I had to go look up the Vary HTTP header. I didn't even know about it
until you mentioned it. :)
Your code makes certainly makes it easier to figure out the language
based on the request. But unless I'm missing something, it looks like I
will have to go through every one of my JAX-RS annotated methods and
call ResponseBuilder.language() method, to set the HTTP
Content-Language header. And not only do I have to call that method, I
have to change all my method signatures to return a Response.
If I have to, I have to. But that's why I was hoping to use a
ContainerReponseFilter.
Thank you!
Charles