RE: Parsing headers, was: Abstract from HTTP <was> Re: Welcome to JSR 311

From: Jerome Louvel <>
Date: Tue, 10 Apr 2007 15:27:24 +0200


> 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.

Great, I missed that.

> Note that the list is not 'normalized' so if there was:
> Accept: text/html, text/plain
> Accept: image/gif
> Then there would be two values "text/html, text/plain" and
> "image/gif".
> Not always ideal...
> Do you think normalization should be required?

Absolutely, this is the type of lower-level HTTP issues that JSR users
should't care for.

Best regards,