Paul Sandoz schrieb:
> ...
> Not that in the java doc of the proposal you can achieve the same thing
> using the HeaderParam annotation:
>
> @HeaderParam("Accept") List<String> tags
>
> The same rule also works for QueryParam and MatrixParam annotations.
>
> Note that the list is not 'normalized' so if there was:
>
> Accept: text/html, text/plain
> Accept: image/gif
So how would you parse something like:
Accept: foo/bar;ext="a,b", text/plain
(as far as I understand, a parser for list-typed headers must understand
the syntax of each component)
> Then there would be two values "text/html, text/plain" and "image/gif".
> Not always ideal...
>
> Do you think normalization should be required?
I think it would be desirable...
Best regards, Julian