Jerome Louvel wrote:
>>> I would suggest the following approach:
>>>
>>> public void setTags(@Context("header.Slug") List<String> tags){
>>> ...
>>> }
>> You lost me here. "Slug" is not of type list...
>
> Sorry, I wrongly assumed that "Slug" was a repeating header. Let's consider
> this solution for a truly repeating header instead.
>
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
Then there would be two values "text/html, text/plain" and "image/gif".
Not always ideal...
Do you think normalization should be required?
Paul.
> RFC2047:
>> It adds the ability to represent non-ISO8859 characters in headers.
>
> OK. Is it compatible with the HTTP 1.1 specification of headers?
>
> Best regards,
> Jerome
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109