You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "KARR, DAVID" <dk...@att.com> on 2012/08/15 00:17:39 UTC

Does JAX-RS specify the use of extensions to specify response media types?

I just took a quick look through the JAX-RS specification, but I didn't find any mention of extension mapping.  Is this defined in the spec?  If not, do any of the other JAX-RS (or REST) frameworks implement extension mapping?

Re: Does JAX-RS specify the use of extensions to specify response media types?

Posted by Sergey Beryozkin <sb...@gmail.com>.
On 15/08/12 01:17, KARR, DAVID wrote:
> I just took a quick look through the JAX-RS specification, but I didn't find any mention of extension mapping.  Is this defined in the spec?  If not, do any of the other JAX-RS (or REST) frameworks implement extension mapping?
Hi David,

I believe it was specified back in 0.8 but then was dropped for whatever 
reasons. AFAIK, Jersey & CXF still support it

Sergey

-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Re: Does JAX-RS specify the use of extensions to specify response media types?

Posted by Sergey Beryozkin <sb...@gmail.com>.
On 15/08/12 16:59, KARR, DAVID wrote:
>> -----Original Message-----
>> From: Glen Mazza [mailto:gmazza@talend.com]
>> Sent: Tuesday, August 14, 2012 6:29 PM
>> To: users@cxf.apache.org
>> Subject: Re: Does JAX-RS specify the use of extensions to specify
>> response media types?
>>
>> CXF:
>> http://stackoverflow.com/questions/10000699/mapping-extension-content-
>> types-in-apache-cxf-jax-rs
>> Jersey: http://zcox.wordpress.com/2009/08/11/uri-extensions-in-jersey/
>>
>> According to Bill Burke's book "RESTful Java with JAX-RS" (p. 114),
>> they
>> came close but decided to remove from the JAX-RS 1.0 specification a
>> formal way to define this extension mapping (too many disagreements
>> over
>> its syntax.)
>
> Just so I'm clear, it was removed because they couldn't agree on how to specify the mapping from extensions to content types, and not that they couldn't agree on using extension mapping?
>
I was not involved in the discussions at that time so can not comment.
Sergey

>> On 08/14/2012 06:17 PM, KARR, DAVID wrote:
>>> I just took a quick look through the JAX-RS specification, but I
>> didn't find any mention of extension mapping.  Is this defined in the
>> spec?  If not, do any of the other JAX-RS (or REST) frameworks
>> implement extension mapping?
>



Re: Does JAX-RS specify the use of extensions to specify response media types?

Posted by Glen Mazza <gm...@talend.com>.
On 08/15/2012 11:59 AM, KARR, DAVID wrote:
>> -----Original Message-----
>> From: Glen Mazza [mailto:gmazza@talend.com]
>> Sent: Tuesday, August 14, 2012 6:29 PM
>> To: users@cxf.apache.org
>> Subject: Re: Does JAX-RS specify the use of extensions to specify
>> response media types?
>>
>> CXF:
>> http://stackoverflow.com/questions/10000699/mapping-extension-content-
>> types-in-apache-cxf-jax-rs
>> Jersey: http://zcox.wordpress.com/2009/08/11/uri-extensions-in-jersey/
>>
>> According to Bill Burke's book "RESTful Java with JAX-RS" (p. 114),
>> they
>> came close but decided to remove from the JAX-RS 1.0 specification a
>> formal way to define this extension mapping (too many disagreements
>> over
>> its syntax.)
> Just so I'm clear, it was removed because they couldn't agree on how to specify the mapping from extensions to content types, and not that they couldn't agree on using extension mapping?

According to the book, the former, for JAX-RS 1.0.  (JAX-RS 2.0, which 
we don't yet implement, I don't know if there's anything common in there.)

Glen

>
>> On 08/14/2012 06:17 PM, KARR, DAVID wrote:
>>> I just took a quick look through the JAX-RS specification, but I
>> didn't find any mention of extension mapping.  Is this defined in the
>> spec?  If not, do any of the other JAX-RS (or REST) frameworks
>> implement extension mapping?


RE: Does JAX-RS specify the use of extensions to specify response media types?

Posted by "KARR, DAVID" <dk...@att.com>.
> -----Original Message-----
> From: Glen Mazza [mailto:gmazza@talend.com]
> Sent: Tuesday, August 14, 2012 6:29 PM
> To: users@cxf.apache.org
> Subject: Re: Does JAX-RS specify the use of extensions to specify
> response media types?
> 
> CXF:
> http://stackoverflow.com/questions/10000699/mapping-extension-content-
> types-in-apache-cxf-jax-rs
> Jersey: http://zcox.wordpress.com/2009/08/11/uri-extensions-in-jersey/
> 
> According to Bill Burke's book "RESTful Java with JAX-RS" (p. 114),
> they
> came close but decided to remove from the JAX-RS 1.0 specification a
> formal way to define this extension mapping (too many disagreements
> over
> its syntax.)

Just so I'm clear, it was removed because they couldn't agree on how to specify the mapping from extensions to content types, and not that they couldn't agree on using extension mapping?

> On 08/14/2012 06:17 PM, KARR, DAVID wrote:
> > I just took a quick look through the JAX-RS specification, but I
> didn't find any mention of extension mapping.  Is this defined in the
> spec?  If not, do any of the other JAX-RS (or REST) frameworks
> implement extension mapping?


Re: Does JAX-RS specify the use of extensions to specify response media types?

Posted by Glen Mazza <gm...@talend.com>.
CXF: 
http://stackoverflow.com/questions/10000699/mapping-extension-content-types-in-apache-cxf-jax-rs
Jersey: http://zcox.wordpress.com/2009/08/11/uri-extensions-in-jersey/

According to Bill Burke's book "RESTful Java with JAX-RS" (p. 114), they 
came close but decided to remove from the JAX-RS 1.0 specification a 
formal way to define this extension mapping (too many disagreements over 
its syntax.)

HTH,
Glen

On 08/14/2012 06:17 PM, KARR, DAVID wrote:
> I just took a quick look through the JAX-RS specification, but I didn't find any mention of extension mapping.  Is this defined in the spec?  If not, do any of the other JAX-RS (or REST) frameworks implement extension mapping?