Hi Santiago
>>>>> Here a few interesting cases:
>>>>>
>>>>> (I) Request (Accept: text/plain, application/xml)
>>>>>
>>>>> Resource {
>>>>> @GET @Produces("text/*") m1() { ... }
>>>>> @GET @Produces("application/xml") m2() { ... }
>>>>> }
>>>>>
>>>>> Which method should be matched in this case?
>>>>>
>>>>> (II) Same as (I) but with q=0.8 in Accept:
>>>>>
>>>>> Request (Accept: text/plain, application/xml;q=0.8)
>>>>>
>>>>> What about in this case?
>
> It does not in any way complicate the algorithm implementation (it obviously doesn't need to follow the formalization in the spec). It does, however, resolve a number of ambiguous cases involving _incompatible_ types that do not follow the simple m/n> m/*> */* rule (for a fixed m and n).
Is there any chance that you can give me a favor and 'apply' a spec text
in this thread to cases (I), (II) and one more case involving
incompatible types (please choose at your discretion) ?
I'd definitely learn something new I guess, and may be it can be of
interest to others too
Thanks, Sergey
>
> -- Santiago
>
>