jsr339-experts@jax-rs-spec.java.net

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

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Tue, 3 Jul 2012 11:03:51 -0400

On Jul 2, 2012, at 5:50 PM, 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.

 Yes, that's true. Do we really want to change this? Seems like unnecessary complexity given that you can have multiple instances.

-- Santiago