users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Link header can contain more than one link

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 3 Jul 2012 10:13:07 +0100

On 02/07/12 22:50, Bill Burke wrote:
>
>
> On 7/2/12 5:48 PM, Julian Reschke wrote:
>> On 2012-07-02 23:44, Bill Burke wrote:
>>>
>>>
>>> On 7/2/12 5:38 PM, Julian Reschke wrote:
>>>> On 2012-07-02 23:17, Bill Burke wrote:
>>>>> A Link header can contain more than one link within it delimited by a
>>>>> ','
>>>>>
>>>>> Does this conflict with Link header delegate we're supposed to provide
>>>>> as an implementor? Current implemntation of Link class pretty much
>>>>> assumes one link per string value.
>>>>
>>>> Well, there can also be multiple instances of the header field. Both
>>>> should be treated the same way, right?
>>>>
>>> I know Tomcat, Jetty, jBossWeb do not auto separate comma-delimited
>>> headers and assumed jaxrs implementations shouldn't either.
>>
>> They can't, unless they know the exact syntax of the header field.
>>
>
> ...which brings me back to my original point that our Link
> HeaderDelegate can only support 1 link string.
>
In CXF we can configure the runtime to add separate HTTP headers per
every value

Sergey
>
>> Best regards, Julian
>>
>>
>